Page 1 of 1
Unable to run check on non-child node. Revise your query
Posted: Wed Jul 06, 2016 1:00 pm
by jcwuerfl
Why doesn't this produce an alert of some kind ?
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.
Re: Unable to run check on non-child node. Revise your query
Posted: Wed Jul 06, 2016 1:10 pm
by lmiltchev
Why doesn't this produce an alert of some kind ?
It is because the check is configured properly - only testing (from within CCM) fails. The "error" output is caused by escaping issues.
So, instead of running this:
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 95
try running this from the command line:
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 95
(remove the "\" in front of the pipe).
Re: Unable to run check on non-child node. Revise your query
Posted: Wed Jul 06, 2016 1:31 pm
by jcwuerfl
Currently I have /dbdata unmounted.
This :
Code: Select all
'disk/logical/|dbdata/used_percent'
Gives me :
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;
The below doesn't work and does give me the error, however it gives me the same error with hosts with /dbdata mounted?
Code: Select all
-M 'disk/logical/\|dbdata/used_percent'
error:
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.
Re: Unable to run check on non-child node. Revise your query
Posted: Wed Jul 06, 2016 1:54 pm
by jcwuerfl
I still had a directory there w/o the mount being "mounted" there so was still working as it was check the root space as apposed to the /dbdata mount I believe.
Thanks!
Re: Unable to run check on non-child node. Revise your query
Posted: Wed Jul 06, 2016 2:22 pm
by bwallace
Thanks for the update - are we good to lock this thread or do you prefer it be left open awhile longer?