Page 1 of 1

NRPE plugin with NCPA and Raid mon

Posted: Tue Oct 27, 2015 8:30 am
by angus
Hello,

I need to get my HP server's RAID arrays monitored. I have been going through the exchange but mainly finding Linux based plugins. I have several Windows servers whose arrays need monitoring. I found the plugin below that "will work" with windows. I am using NCPA to monitor these servers. Is there a way i can modify this to work with NCPA?

https://exchange.nagios.org/directory/P ... ks/details

Re: NRPE plugin with NCPA and Raid mon

Posted: Tue Oct 27, 2015 2:41 pm
by jdalrymple
Most plugins will drop in place going from NRPE to NCPA. What specifically about it isn't working?

Re: NRPE plugin with NCPA and Raid mon

Posted: Tue Oct 27, 2015 2:55 pm
by lmiltchev
If you placed your script in the NCPA plugins' directory (i.e. C:\Program Files (x86)\Nagios\NCPA\plugins\check_smartarray_v1.5.ps1), you could use something like this:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H <client IP> -P 5693 -t <token> -M agent/plugin/check_smartarray_v1.5.ps1 -a "<args>"
I cannot test this script in-house, but I tried another PS script with NCPA. Here's an example:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -P 5693 -t mytoken -M agent/plugin/Check-Performance-Counters.ps1 -a "-n \"\Processor(_Total)\% Processor Time\""
OK: Counter \Processor(_Total)\% Processor Time returned results 14.0093686641124 | 'Counter 0'=14;;;;
Hope this helps.