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

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
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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)?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked