- by Konstantin Boyandin
- 03.08.2014
- 0 Comments
- Views 9
How to create a custom monitor?
How to create a custom monitor?
Q: None of monitor types available can handle the task. How can I run a program or script of my choice instead?
A: Right click on an existing host and select “New Monitor”, then select “Custom monitors” category on the left and “Script or Program” monitor.
Select the appropriate host and group settings on a next screen and click on “Finish”. Now select the newly created monitor and proceed to “Monitor Definition” section.
You 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 Monitoring Service Account Credentials (LocalSystem) by default, so you may need to select specific credentials in the Credentials section for this monitor to get access to required data.
The following settings are self-explanatory: “Path”, “Arguments”, “Mode”.