problems check_ms_windows_disk_load plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pkarr
Posts: 58
Joined: Fri Oct 05, 2012 1:01 pm

problems check_ms_windows_disk_load plugin

Post by pkarr »

Hi,
I'm trying to get the check_ms_windows_disk_load plugin from the Nagios Exchange to work
(https://exchange.nagios.org/directory/P ... ad/details)

I saw the recent post on it and tried the suggestions but to no avail. Note that I have other nsclient/check_nrpe service checks running successfully on this server.

Here is my command definition from the NSC.ini configuration (we are using NSClient 0.3.9) on the remote server

check_ms_diskload=cmd /c echo scripts\check_ms_windows_disk_load.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command -

and here is from the command line on my Nagios server

[root@lkennagiost02 libexec]# ./check_nrpe -H 172.22.2.133 -p 5666 -t 60 -c check_ms_diskload -a '-ms 5 -dl'
Unknown: Illegal arguments detected.

Any ideas as to what's wrong?

Thanks,
Penny Karr | IT Infrastructure Monitoring
Harvard Vanguard Medical Associates, an Affiliate of Atrius Health
254 Second Avenue | Needham, MA 02494
P (781) 292-1853 | F (781 292-1980 | http://www.harvardvanguard.org
Email: [email protected]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problems check_ms_windows_disk_load plugin

Post by lmiltchev »

Have you tried to run the script locally on the Windows box to see if it is going to work with these arguments?

You can try wrapping the $ARG1$ in double quotes, i.e.

Code: Select all

check_ms_diskload=cmd /c echo scripts\check_ms_windows_disk_load.ps1 "$ARG1$"; exit $LastExitCode | powershell.exe -command -
Can you show us the NSC.ini file? Hide sensitive info.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked