Page 4 of 7

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 22, 2014 4:22 am
by kakaluru
Hi,

We are using xinetd service

No issues with iptalbes.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 22, 2014 3:18 pm
by abrist
What does your xinetd config look like on the remote host:

Code: Select all

cat /etc/xinetd.d/nrpe

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Thu Oct 23, 2014 2:29 am
by kakaluru
Hi,

Plz can you give glance to previous posts. I have shared every thing

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Thu Oct 23, 2014 1:26 pm
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

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 29, 2014 1:46 am
by kakaluru
Hi,

./check_nrpe command is not working in nagios server.

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

Is there other commans ?

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Wed Oct 29, 2014 1:55 am
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

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 31, 2014 1:21 am
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.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Fri Oct 31, 2014 8:35 am
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.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Tue Nov 04, 2014 1:36 am
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.

Re: CHECK_NRPE: Socket timeout after 20 seconds.

Posted: Tue Nov 04, 2014 4:30 pm
by abrist
Are those logs from the nagios server or the remote nrpe host?