How to create a custom monitor?
Right click on an existing host and select "New Monitor", then select "Script of Program".
Select the appropriate settings on a next screen and click on "Finish". Now select the newly created monitor and proceed to "Monitor Definition" section.
One can use either a script known to Windows Scripting Host, a Nagios Plugin or an external script and/or program to run.
Note that the script/program selected is executed under the default user account credentials set in "Global settings", so the appropriate permissions should be granted to access whatever data the script would use.
The following settings are self-explanatory: "Path to Program File", "Program Parameters", "Program Type", "Program Mode".
External program is run by invoking cmd.exe and passing it the full path to program and the parameters.
If the program/script exit code is zero, then the whatever is printed to the standard output is used as the returned value; otherwise, the output is used as an error message.
You can scale the returned (real) value with "Divide returned value by" setting (1.0 by default, i.e., no change).




