Code: Select all
COMMAND: /usr/local/nagios/libexec/check_ncpa.py -H hostname.domain.com -t 'password' -P 5693 -M 'disk/logical/\|dbdata/used_percent' -w 90 -c 95
OUTPUT: Unable to run check on non-child node. Revise your query.
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_ncpa.py -H hostname.domain.com -t 'password' -P 5693 -M 'disk/logical/\|dbdata/used_percent' -w 90 -c 95
OUTPUT: Unable to run check on non-child node. Revise your query.
It is because the check is configured properly - only testing (from within CCM) fails. The "error" output is caused by escaping issues.Why doesn't this produce an alert of some kind ?
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H hostname.domain.com -t 'password' -P 5693 -M 'disk/logical/\|dbdata/used_percent' -w 90 -c 95Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H hostname.domain.com -t 'password' -P 5693 -M 'disk/logical/|dbdata/used_percent' -w 90 -c 95Code: Select all
'disk/logical/|dbdata/used_percent'Code: Select all
File returned contained:
{
"value": {
"returncode": 0,
"stdout": "OK: used_percent was 6% | 'used_percent_0'=6%;90;95;"
}
}
OK: used_percent was 6% | 'used_percent_0'=6%;90;95;
Code: Select all
-M 'disk/logical/\|dbdata/used_percent'Code: Select all
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.