Re: Revise Query
Posted: Mon Jun 13, 2016 12:32 pm
Just put the script (I named mine disk_check.ps1) in your C:\Program Files (x86)\Nagios\NCPA\plugins directory and restart the NCPA Listener service.
Then create a new service (Configure > Core Config Manager > Services > Add New)
- Check command: check_xi_ncpa_agent
- $ARG1$:
The format is: agent/plugin/disk_check.ps1/DRIVELETTER/WARNING/CRITICAL
Then create a new service (Configure > Core Config Manager > Services > Add New)
- Check command: check_xi_ncpa_agent
- $ARG1$:
Code: Select all
-t 'YOURAPIKEY' -P 5693 -M agent/plugin/disk_check.ps1/C/80/95