NCPA - Issue Monitoring D, E, F Drive on Windows Server 2003
Posted: Wed Jun 05, 2019 9:42 pm
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.
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.