Remote Command output is not appearing in Nagios Home page

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
msachikanta
Posts: 58
Joined: Tue Jan 03, 2012 2:35 am

Remote Command output is not appearing in Nagios Home page

Post 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
msachikanta
Posts: 58
Joined: Tue Jan 03, 2012 2:35 am

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

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked