NCPA - Issue Monitoring D, E, F Drive on Windows Server 2003

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

NCPA - Issue Monitoring D, E, F Drive on Windows Server 2003

Post by jh129666 »

I'm using check_ncpa to monitor disk space on a windows server 2003 machine. The command for monitoring the C drive works, but the ones for D, E and F fail with the same error.

The check_ncpa.py plugin is version 1.1.5 and the check_ncpa executable is 1.8.1.

/usr/local/nagios/libexec/check_ncpa.py -H host -t 'token' -P port -M 'disk/logical/C:|/used_percent' -w 85 -c 95 -v
File returned contained:
{
"value": {
"returncode": 0,
"stdout": "OK: used_percent was 77% | 'used_percent_0'=77%;85;95;"
}
}
OK: used_percent was 77% | 'used_percent_0'=77%;85;95;


/usr/local/nagios/libexec/check_ncpa.py -H host -t 'token' -P port -M 'disk/logical/D:|/used_percent' -w 85 -c 95 -v
File returned contained:
{
"value": {
"returncode": 3,
"stdout": "Unable to run check on non-child node. Revise your query."
}
}
Unable to run check on non-child node. Revise your query.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA - Issue Monitoring D, E, F Drive on Windows Server

Post by lmiltchev »

This issue has been fixed in the newer versions of the NCPA agent. Unfortunately, you are using Windows Server 2003 (End Of Life - July 14, 2015), which is VERY OLD, and no longer supported by psutils (used by NCPA).

You can upgrade your Windows Server and the NCPA agent or alternatively, you could find a plugin (e.g. PS script) that you could run locally, and call via NCPA.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked