Monitoring hasil dari SSH Script Anda



A few months ago, we've featured the SSH Script sensor, which allows you to use your own scripts to customize your Linux monitoring. The SSH Script Advanced sensor takes the customization potential even further as it enables you to show values returned by an executable script located on the target system in multiple channels. This really comes in handy if you want to monitor multiple processes and return the result of each process in a separate channel.

In order to set up the SSH Script Advanced sensor, select a script from the /var/prtg/scriptsxml directory on the target Linux/Unix system. Please note that the script files stored in this folder must return valid XML in order for the sensor to show the expected values. If set up correctly, the sensor can show the following:
  • Execution time, and
  • Values returned by the script in multiple channels.
The areas of application for the SSH Script Advanced sensor are virtually infinite. You can use it to monitor, for example, multiple processes of your web shop and return the results of each check in a separate channel:
  • The number of new orders in the last 24 hours,
  • The number of registered users, and
  • The number of new customer tickets.
This allows you to keep a detailed overview of your running processes—all within one sensor. If you set limits in PRTG for the monitored values, you can also set up notifications to get alerted if these values are exceeded and go into error state.
For more detailed information on the SSH Script Advanced sensor, please have a look at the PRTG manual. For deeper insights into your Linux systems also take a look at the Python Mini Probe, which enables you to run a mini probe directly on the Linux target system.