check_ssh plugin generating failures in logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ssa_nagios
Posts: 38
Joined: Fri Jun 13, 2014 12:52 pm

check_ssh plugin generating failures in logs

Post by ssa_nagios »

I have noticed recently that when running the check_ssh command from my Linux Nagios XI server to a remote solaris machine I get the following in the /var/adm/messages file

[ID 800047 local6.crit] fatal getpeername failed: Transport endpoint is not connected

I'm trying to determine the root cause of this issue.

The correct value is being returned to Nagios XI, but I'm concerned as to what is causing the error in the logs.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_ssh plugin generating failures in logs

Post by lmiltchev »

Can you show us the actual check that you are running from the command line, along with the output of it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssa_nagios
Posts: 38
Joined: Fri Jun 13, 2014 12:52 pm

Re: check_ssh plugin generating failures in logs

Post by ssa_nagios »

Here is the command and result from the Nagios XI server:

Code: Select all

# ./check_ssh -H ##################
SSH OK - ReflectionForSecureIT_8.0.1.57 (protocol 2.0) | time=0.131372s;;;0.000000;10.000000
On the remote host in the logs it is showing:

[ID 800047 local6.crit] fatal getpeername failed: Transport endpoint is not connected

I have performed an nslookup, both forward and reverse lookups, and they all come back with the correct results. I was told that the error "getpeername" results with the Nagios server is missing a PTR record. But as I mentioned above the lookups are coming back correct.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_ssh plugin generating failures in logs

Post by lmiltchev »

We haven't run across this error before. You can try increasing the verbosity by running:

Code: Select all

./check_ssh -H <host> -vvv
Probably the best route to go would be to turn on debugging on the remote box, and see if you are going to find some extra info in the logs, that can point you to the right direction.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssa_nagios
Posts: 38
Joined: Fri Jun 13, 2014 12:52 pm

Re: check_ssh plugin generating failures in logs

Post by ssa_nagios »

Ok I will dig deeper into this issue. you can close this ticket for now.
Locked