CHECK_NRPE: Socket timeout after 20 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.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

We are using xinetd service

No issues with iptalbes.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by abrist »

What does your xinetd config look like on the remote host:

Code: Select all

cat /etc/xinetd.d/nrpe
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

Plz can you give glance to previous posts. I have shared every thing
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by Box293 »

What is the output from running the following command on the nagios server?

Code: Select all

./check_nrpe -H <client ip>
Please post the output from that command.

ALSO please show us the full command executed at the command line with it's output, like:

Code: Select all

./check_nrpe -H <client ip> -c check_load
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

./check_nrpe command is not working in nagios server.

-bash: ./check_nrpe: No such file or directory

Is there other commans ?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by Box293 »

Try these commands:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip>

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client ip> -c check_load
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

[root@son1840 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.174.16.11
CHECK_NRPE: Socket timeout after 10 seconds.

[root@son1840 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.174.16.11 -c check_load
CHECK_NRPE: Socket timeout after 10 seconds.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by slansing »

Can you run:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.174.16.11
A few times, then quickly run the following on that remote host and share the output with us?:

Code: Select all

tail -50 /var/log/messages
Alter the above tail to your syslog location.
kakaluru
Posts: 30
Joined: Tue Sep 23, 2014 2:00 am

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by kakaluru »

Hi,

Code: Select all

[root@son1840 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.174.16.11
CHECK_NRPE: Socket timeout after 10 seconds.

[root@son1840 ~]# tail -50 /var/log/messages
Nov  4 11:04:07 son1840 avahi-daemon[1723]: Invalid response packet from host 192.168.30.201.
Nov  4 11:05:45 son1840 avahi-daemon[1723]: Invalid response packet from host 192.168.30.201.
Nov  4 11:09:12 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Zombie Processes;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:09:22 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Memory Usage;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:09:28 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:29 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:29 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:29 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:29 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:31 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:32 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;/var Free Space;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:09:32 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:32 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:35 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:41 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:09:42 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Swap Usage;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:09:52 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;HTTP;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:10:08 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:10:52 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;bugzillabck1;Root Free Space;CRITICAL;notify-service-by-email;DISK CRITICAL - free space: / 2921 MB (6% inode=92%):
Nov  4 11:12:12 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;MySQL DB Status;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:12:12 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;CPU Load;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:12:25 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:26 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:26 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:26 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:26 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:27 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:28 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:29 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:32 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Total Processes;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:12:32 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;MPLS URL Status-Bng Standby;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:12:38 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:12:42 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;/usr Free Space;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:12:52 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Root Free Space;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:13:02 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;Current Users;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:13:06 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:12 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;/boot Free Space;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
Nov  4 11:13:32 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;tuidbserver;gfdevu1 OraInstance Status;CRITICAL;notify-service-by-email;gfdevu1 Database is DOWN
Nov  4 11:13:38 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:39 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:39 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:39 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:39 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:39 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:42 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:13:51 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:14:12 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;tuidbserver;merdev2 OraInstance Status;CRITICAL;notify-service-by-email;merdev2 Database is DOWN
Nov  4 11:14:19 son1840 avahi-daemon[1723]: Invalid query packet.
Nov  4 11:15:02 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;tuidbserver;Root Free Space;CRITICAL;notify-service-by-email;DISK CRITICAL - free space: / 0 MB (0% inode=86%):
Nov  4 11:17:52 son1840 nagios: SERVICE NOTIFICATION: nagiosadmin;BUGZILLABCK;/dev/shm Free Space;CRITICAL;notify-service-by-email;CHECK_NRPE: Socket timeout after 20 seconds.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Post by abrist »

Are those logs from the nagios server or the remote nrpe host?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked