Monitor Parameters: Monitor Type
<Prev Databases | Index | Virtual Machines Next> |
Monitor Type | Properties |
---|---|
Custom monitors | |
Python script | This monitor type allows to run a Python script and to interpret the script return code and output according to the following rules:
When the script returns zero, its standard output stream is interpreted as follows:
|
Script or Program | This monitor type allows to run an external program, batch file or Windows Scripting Host script such as Visual Basic script and to interpret the script output as a performance value and optional text message as described here. Use it to monitor anything that is not covered by the standard monitor types.
Program type Mode – is a radiobutton with the two following options:
|
SSH (Remote Script or Program) | This monitor type allows to connect to a remote host over SSH and to run any command there. Execution results are interpreted as a performance value and optional text message as described here. Use it to monitor remotely anything that is not covered by the standard monitor types. In particular, you can integrate any already deployed monitoring capabilities for UNIX-based hosts with the IPNetwork Monitor alerting and reporting engine, be it custom scripts, Nagios plugins or interfaces provided by other systems. You can also just measure SSH connecting time using this monitor.
Script execution Mode – is a radiobutton with three options. You can run scripts or commands using either Run Script or Run Nagios Script mode as explained here. In these two cases, the next setting, How to run a script, specifies which script to run as explained below. The last option, Measure Time, disables script execution on the server. Instead, an SSH monitor in this mode just measures the SSH connection time in milliseconds.
How to run a script – a drop down list with three options:
| iconv -f <encoding> -c -t utf-8 ” to perform the conversion. Full list of supported encodings can be found by calling locale -m .
Divide returned value by, Take delta and Normalize by time – all have the same meaning as for the SNMP monitor;
Take delta parameter instructs the monitoring service to calculate deltas of each of the two subsequent performance values.
Normalize by time divides the Delta by the number of seconds between polls.
Dividing returned value allows scaling performance numbers to make them valid signed 32-bit integers. In particular, specify value 0.001 to convert milliseconds to seconds (divide them by 1/1000, that is, multiply by 1000). Note that counters with Take delta on do not show any value until the second poll.
Port (integer, by default 22), is a port to connect to.
Host Key Fingerprint – if this checkbox is checked, the Host Key Fingerprint is compared with the actual fingerprint used by the destination host. When they don’t match, the credentials are not sent to that host and the monitor is considered Down. You can get a current host fingerprint from the error message in the Logs Pane and paste it to the Host Key Fingerprint parameter to make this check succeed.
Authentication – this parameter defines an authentication method to use. Authentication By password uses the credentials selected in the Credentials section below. Authentication By public key uses the values of Path to Public Key File and Path to Private Key File (these should be obtained using the ssh-keygen utility as explained here and registered on your SSH server) as well as Passphrase for a private key. The last authentication method, By public key or password, attempts to authenticate both ways, first by the public key, next by the password. |
<Prev Databases | Index | Virtual Machines Next> |