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
check_by_ssh plugin timed out after 10-30 seconds
Re: check_by_ssh plugin timed out after 10-30 seconds
Done.
I've solved.
The problem was the network admin changed the ip's for some hosts.
Thanks,
Cosmin
I've solved.
The problem was the network admin changed the ip's for some hosts.
Thanks,
Cosmin
Re: check_by_ssh plugin timed out after 10-30 seconds
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