Check_by_ssh :: returned status 255 || Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ericssonvietnam
Posts: 239
Joined: Mon Jun 27, 2016 11:05 pm

Check_by_ssh :: returned status 255 || Error

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_by_ssh :: returned status 255 || Error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked