Page 1 of 1

Check_by_ssh :: returned status 255 || Error

Posted: Thu Jul 19, 2018 1:29 am
by ericssonvietnam
When I am manually executing the command it's showing normal output on the Nagios server whereas when I am executing the same from the Front-end of Nagios XI its showing error.


COMMAND: /usr/local/nagios/libexec/check_by_ssh -H DNRBTA -C "/home/nagios/check_mem.sh" -E
OUTPUT: UNKNOWN - check_by_ssh: Remote command '/home/nagios/check_mem.sh' returned status 255

Capture.3PNG.PNG
Capture4.PNG

can you help me out and away forward to solve. I am getting this error for all nodes.

Re: Check_by_ssh :: returned status 255 || Error

Posted: Thu Jul 19, 2018 7:59 am
by scottwilkerson
Have you saved the service and get the same error or just run the Test command in the CCM?

I ask because with check_by_ssh there is a problem using the test command because of privilege separation

Re: https://support.nagios.com/forum/viewto ... 10#p137154