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.
NCPA - Issue Monitoring D, E, F Drive on Windows Server 2003
Re: NCPA - Issue Monitoring D, E, F Drive on Windows Server
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.
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!