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;
Canout get output
Re: Canout get output
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.
Former Nagios employee
-
dan@thinkip
- Posts: 8
- Joined: Fri Oct 16, 2015 1:28 pm
Re: Canout get output
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
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.
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.
Former Nagios employee