Page 2 of 2

Re: Canout get output

Posted: Tue Oct 27, 2015 11:25 am
by dan@thinkip
I did have a ! in my token. Removed the !, but still not getting any output.

When running from Service Template Management getting this output:
COMMAND: /usr/local/nagios/libexec/check_ncpa.py -H 172.16.3.107 -t Th1nk-1p -M 'disk/logical/C:\|/used_percent' -w 70 -c 90 -P 5693
OUTPUT: Unable to run check on non-child node. Revise your query.

When I run from cli:
[root@localhost libexec]# ./check_ncpa.py -H 172.16.3.107 -t Th1nk-1p -M 'disk/logical/C:|/used_percent' -w 70 -c 90 -P 5693
OK: used_percent was 30% | 'used_percent_0'=30%;70;90;

Re: Canout get output

Posted: Tue Oct 27, 2015 11:30 am
by tmcdonald
I notice you are using the Test Check Command button. The results from that button are not always the most accurate. Have you tried just saving the check and letting it run naturally? In some cases that reveals that the check is working, and the test button is at fault.

Re: Canout get output

Posted: Wed Oct 28, 2015 9:35 am
by dan@thinkip
I have let it run, but it isn't running. That is the problem. How is suppose to do these checks? Cron Job? What job is it that runs the NCPA check? I see no output using port 5693 (NCPA port)

Re: Canout get output

Posted: Wed Oct 28, 2015 9:43 am
by tmcdonald
When you say it is not running, what do you mean exactly? Do you mean the status is not updating, or that you are still getting (No output on stdout) stderr: /bin/sh: -c: line 0: unexpected EOF while looking for matching ` from your first post?

As for how it runs, Nagios itself handles the check scheduling based on the parameters you give it in the Core Config Manager. Cron is not a part of our normal check workflow.