Canout get output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dan@thinkip
Posts: 8
Joined: Fri Oct 16, 2015 1:28 pm

Re: Canout get output

Post 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;
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Canout get output

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

Re: Canout get output

Post 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)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Canout get output

Post 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.
Former Nagios employee
Locked