check_by_ssh plugin timed out after 10-30 seconds

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
kiri
Posts: 2
Joined: Fri Oct 10, 2014 5:03 am

check_by_ssh plugin timed out after 10-30 seconds

Post by kiri »

Hi guys,

I have a strange problem with some servers in my network executing check_by_ssh script.
I'm trying to execute the following command from command line and it works fine:
./check_by_ssh -H xxxxxx -i /home/nagios/.ssh/id_rsa -l dwmon 'nagios/libexec/check_swap -a -w15% -c5%'
SWAP OK - 100% free (2048 MB out of 2048 MB) |swap=2048MB;307;102;0;2048

Also I tested at client level and it works:
$ nagios/libexec/check_swap -a -w15% -c5%
SWAP OK - 100% free (2048 MB out of 2048 MB) |swap=2048MB;307;102;0;2048



I enabled debug and I saw in debug file and also in WEB
"CRITICAL - Plugin timed out after 30 seconds"

Could you pelase tell me what is wrong?
Also I want to know if check_by_ssh is using ping command (because the ping won't work for this host and also ssh from remote server to nagios server not work, only from nagios server to remote host)


Thank you,
Cosmin
kiri
Posts: 2
Joined: Fri Oct 10, 2014 5:03 am

Re: check_by_ssh plugin timed out after 10-30 seconds

Post by kiri »

Done.

I've solved.
The problem was the network admin changed the ip's for some hosts.

Thanks,
Cosmin
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_by_ssh plugin timed out after 10-30 seconds

Post by tmcdonald »

That would certainly explain it! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked