NRPE plugin with NCPA and Raid mon

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
angus
Posts: 125
Joined: Thu May 28, 2015 8:17 am

NRPE plugin with NCPA and Raid mon

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE plugin with NCPA and Raid mon

Post by jdalrymple »

Most plugins will drop in place going from NRPE to NCPA. What specifically about it isn't working?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE plugin with NCPA and Raid mon

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked