Page 1 of 1

Getting "Socket timeout" and "Plugin timed out " error

Posted: Mon Apr 01, 2019 6:35 am
by Ravikimt
Hi Team,

I am using Nagios Core 4.4.3 version, I want to monitor my remote linux machines but I am getting error in SSH and ping service.

It shows below mentioned error for these two services.

PING - CRITICAL - Plugin timed out
SSH - CRITICAL - Socket timeout

I followed below mentioned link to install nrpe plugin on my remote machines.

https://tecadmin.net/install-nrpe-on-ubuntu/

After that I made below mentioned changes in my nrpe.cfg file but still I am facing the same issue please suggest me something on this.

Code: Select all

server_address=my_remote_server-ip
allowed_hosts=127.0.0.1,my_nagios_server-ip
dont_blame_nrpe=1
After that restarted the service using below command.

Code: Select all

sudo /etc/init.d/nagios-nrpe-server restart

Re: Getting "Socket timeout" and "Plugin timed out " error

Posted: Mon Apr 01, 2019 8:36 am
by scottwilkerson
The PING check wouldn't use the agent and it is timing out too.

Have you made sure the firewall on the remote machine (or any firewall between Nagios and the remote server) allows connection to TCP port 5666 and ICMP (for the ping check)?

Re: Getting "Socket timeout" and "Plugin timed out " error

Posted: Mon Apr 01, 2019 8:59 am
by Ravikimt
There is no firewall between Nagios server and remote host. Both the machines are in same subnet.
But problem here is that sometimes, PING and SSH works fine. It's very confusing.

I just wanted to make sure that it's a network issue or nrpe plugin issue.

Re: Getting "Socket timeout" and "Plugin timed out " error

Posted: Mon Apr 01, 2019 9:01 am
by scottwilkerson
Ravikimt wrote:I just wanted to make sure that it's a network issue or nrpe plugin issue.
It definitely wouldn't be a NRPE issue if the PING command is timing out as well.