Discussion:
[Nagios-users] CHECK_NRPE: Socket timeout after 10 seconds.
a***@gmail.com
2008-06-10 14:16:23 UTC
Permalink
Hi,

I have successfully installed and configured nagios on redhat linux box and
now I'm trying to monitor nagios client on solaris 10 box. I've installed
nagios plugins and nrpe fine. But when try to run check_nrpe from nagios
server it gives the following error,

[***@lnxtestsrv1 libexec]$ ./check_nrpe -H 10.192.2.60 -c check_root
CHECK_NRPE: Socket timeout after 10 seconds.

on the solaris box when I run the same command it works.

***@sol-box # /usr/local/nagios/libexec/check_disk -w 20% -c 10% -W 10% -K
5% -p /
DISK OK - free space: / 9311 MB (95% inode=97%);| /=439MB;7880;8865;0;9850

The nrpe deamon works fine on the remote solaris box and I can even telnet
to it from nagios server.

I need to know how to restart the xinetd service on the solaris box ?

***@sol-box # /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12


Please suggest how to fix this?

Thanks
--
Shankar Asam
a***@gmail.com
2008-06-30 13:06:52 UTC
Permalink
I was able to fix this myself.

Regards
-Shankar

---------- Forwarded message ----------
From: <***@gmail.com>
Date: Tue, Jun 10, 2008 at 7:46 PM
Subject: CHECK_NRPE: Socket timeout after 10 seconds.
To: nagios-***@lists.sourceforge.net


Hi,

I have successfully installed and configured nagios on redhat linux box and
now I'm trying to monitor nagios client on solaris 10 box. I've installed
nagios plugins and nrpe fine. But when try to run check_nrpe from nagios
server it gives the following error,

[***@lnxtestsrv1 libexec]$ ./check_nrpe -H 10.192.2.60 -c check_root
CHECK_NRPE: Socket timeout after 10 seconds.

on the solaris box when I run the same command it works.

***@sol-box # /usr/local/nagios/libexec/check_disk -w 20% -c 10% -W 10% -K
5% -p /
DISK OK - free space: / 9311 MB (95% inode=97%);| /=439MB;7880;8865;0;9850

The nrpe deamon works fine on the remote solaris box and I can even telnet
to it from nagios server.

I need to know how to restart the xinetd service on the solaris box ?

***@sol-box # /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12


Please suggest how to fix this?

Thanks
--
Shankar Asam
--
Shankar Asam
Matthew Macdonald-Wallace
2008-06-30 14:15:03 UTC
Permalink
On Mon, 30 Jun 2008 18:36:52 +0530
Post by a***@gmail.com
I was able to fix this myself.
Can you tell us how so that people who have a similar problem in future
know what to do?

Thanks,

Matt
--
Matthew Macdonald-Wallace
***@truthisfreedom.org.uk
http://www.truthisfreedom.org.uk
a***@gmail.com
2008-07-01 05:42:31 UTC
Permalink
Sure,

The problem was SSL handshake. what I did, on the remote solaris machine I
recompiled nrpe without the ssl support (./configure --help will tell you
how to do that). Once this is done, I executed the following command from
the nagios server

/home/nagios/nagios/libexec/check_nrpe -H 10.192.2.60 -c check_users -n
USERS OK - 2 users currently logged in |users=2;5;10;0

So, If the remote system was built and configured without ssl, you can
define a separate entry in commands.cfg on the nagios server as in the
following example:

define command{
command_name check_nrpe_no_ssl
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n
}

(note the -n qualifier in the command_line) modify your service check (in
services.cfg) to use check_nrpe_no_ssl and restart the nagios server
ex: check_nrpe_no_ssl!check_users!-n

Hope this helps

Regards
-Shankar

On Mon, Jun 30, 2008 at 7:45 PM, Matthew Macdonald-Wallace <
Post by Matthew Macdonald-Wallace
On Mon, 30 Jun 2008 18:36:52 +0530
Post by a***@gmail.com
I was able to fix this myself.
Can you tell us how so that people who have a similar problem in future
know what to do?
Thanks,
Matt
--
Matthew Macdonald-Wallace
http://www.truthisfreedom.org.uk
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Shankar Asam
Loading...