Page 1 of 1

Remote Command output is not appearing in Nagios Home page

Posted: Sat Jun 28, 2014 7:12 am
by msachikanta
Hello,

I am not able to see remote command output in nagios home page. Output result is appearing as like below in nagios home page.
------------------------------------------------------------------------------------------------------------------------------------
Current Load CRITICAL 06-28-2014 13:04:38 0d 0h 59m 38s 4/4 (Return code of 255 is out of bounds)
-------------------------------------------------------------------------------------------------------------------------------------
I am getting the below error for all remote services.

but when i am executing the remote command from nagios server command prompt I am getting proper output as below.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[nagios@server01 libexec]$ ./check_by_ssh -l nagios -H server02 -C '/usr/local/nagios/libexec/check_load -w 5.0,4.0,3 -c 10.0,6.0,4.0' -E
OK - load average: 0.08, 0.02, 0.01|load1=0.080;5.000;10.000;0; load5=0.020;4.000;6.000;0; load15=0.010;3.000;4.000;0;
[nagios@server01 libexec]$
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please advise what could be the problem, I have tried lot of methods but not able to resolve the issue.

Regards,
Sachikanta Mishra

Re: Remote Command output is not appearing in Nagios Home pa

Posted: Sat Jun 28, 2014 8:26 am
by msachikanta
Hello,

I have resolved the issue by changing the 'Address' macro under 'host definition'.

Previously 'Address' macro was like server01.service.local as hostname but when i had created the ssh key it was created as server01 as hostname. hence it was not updating the output properly in nagios home page.

now its resolved and I am able to see the correct output in nagios home page.

Regards,
Sachikanta Mishra

Re: Remote Command output is not appearing in Nagios Home pa

Posted: Sat Jun 28, 2014 2:35 pm
by eloyd
Thank you for posting your fix as well as your problem. This may help others in the future who have a similar situation.