check_by_ssh: Output Unknown Return Code 255

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
fsbeaunix
Posts: 31
Joined: Mon Apr 20, 2015 2:58 pm
Location: Michigan, USA

Re: check_by_ssh: Output Unknown Return Code 255

Post by fsbeaunix »

This looks more like a bug with the "Test Check Command" button in CCM.

In the CCM, when I clicked "Test Check Command" to test a check_by_ssh command, it would fail (see the previous posts). Regardless, I just decided to assign the Service to a host just to see what happened. It's working fine when applied to a host.

"Test Check Command" was generating the Return Code 255, while the Service itself seems to be working as expected. So whole setback seemed to be a bug perhaps. The Test failed, but in prod it works AOK.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: check_by_ssh: Output Unknown Return Code 255

Post by jdalrymple »

fsbeaunix wrote:Error (when I run Test Command in Core Config):
You are right - that is expected behavior (not a bug) and cannot be worked around. The test check command button just works that way. We don't want to do privilege separation there for security reasons.

That said, I'm sorry for missing that key bit of info in your OP. I could have saved us a lot of time and agony as that is very much *just how it works* - never rely 100% on that button for your command debugging.

OK to lock this topic?
User avatar
fsbeaunix
Posts: 31
Joined: Mon Apr 20, 2015 2:58 pm
Location: Michigan, USA

Re: check_by_ssh: Output Unknown Return Code 255

Post by fsbeaunix »

Sure - lock it down. Thanks for your help!
Locked