NRPE: getting mad!

"Martin Mielke (THALES)" <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
Dear all,

I need to monitor some services remotely on some Solaris systems from a
Linux box using NetSaint 0.0.7, which works pretty fine to locally check
services on the NetSaint host.

The NRPE behaviour is pretty diferent, depending on which system it's being
executed, all with Solaris 8 installed, and I'm getting mad...

On the NetSaint host, this are the entries for each host in hosts.cfg:

* Sun Ultra-10:
---
service[ultra10]=PING;0;24x7;3;5;1;sun-admins;240;24x7;1;1;0;;check_ping!100
.0,20%!500.0,60%
service[ultra10]=NRPE;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_tcp!5666
service[ultra10]=RemoteUsers;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_n
rpe!check_users
service[ultra10]=SysLoad;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_nrpe!
check_load
service[ultra10]=DiskUsage;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_nrp
e!check_disk
---

For this host, every remote check works correctly.


* SunBlade 2000:
---
service[sunblade2000]=PING;0;24x7;3;5;1;sun-admins;240;24x7;1;1;0;;check_pin
g!100.0,20%!500.0,60%
service[sunblade2000]=NRPE;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_tcp
!5666
service[sunblade2000]=RemoteUsers;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;ch
eck_nrpe!check_users
service[sunblade2000]=SysLoad;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_
nrpe!check_load
service[sunblade2000]=DiskUsage;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;chec
k_nrpe!check_disk
---

For this one, only PING and NRPE return an "OK"... for the rest I get, for
example:
---
[1034088450] SERVICE ALERT:
sunblade2000;RemoteUsers;UNKNOWN;SOFT;1;CHECK_NRPE: Error receiving data
from host
---


* SunBlade 1000:
---
service[sunblade1000]=PING;0;24x7;3;5;1;sun-admins;240;24x7;1;1;0;;check_pin
g!100.0,20%!500.0,60%
service[sunblade1000]=NRPE;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_tcp
!5666
service[sunblade1000]=RemoteUsers;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;ch
eck_nrpe!check_users
service[sunblade1000]=SysLoad;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;check_
nrpe!check_load
service[sunblade1000]=DiskUsage;0;24x7;3;5;1;sun-admins;120;24x7;1;1;0;;chec
k_nrpe!check_disk
---

This system will cause me a big headache :P
Only PING works.
For NRPE I get:

---
[1034087372] SERVICE NOTIFICATION:
netsaint;sunblade1000;NRPE;CRITICAL;notify-by-email;Connection refused by
host
---

Which is quite odd because I can telnet this machine from the NetSaint host:
---
# telnet sunblade1000 5666
Trying 192.168.x.y...
Connected to sunblade1000.
Escape character is '^]'.

NRPE - NetSaint Remote Plugin Executor
Copyright (c) 1999-2001 Ethan Galstad ([email protected])
Version: 1.2.5
Last Modified: 12-23-2001
License: GPL

Usage: -i <-i | -d> <config_file>

Options:
  -i      Run as a service under inetd or xinetd
  -d      Run as a standalone daemon

Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running NetSaint.  It can run as a service
under inetd (read the docs for info on this), or as a standalone
daemon if you wish. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.

Connection closed by foreign host.
---

I get the same results when I issue a 'telnet localhost 5666' or when nrpe
is executed with the -d switch (standalone mode), after having commented out
the proper entry in /etc/inetd.conf

For all these systems, /etc/system looks like this:
----
...
nrpe            5666/tcp                        # NRPE
----

And /etc/inetd.conf:

---
...
nrpe            stream  tcp             nowait  netsaint
/usr/local/netsaint/nrpe -i /usr/local/netsaint/nrpe.cfg
---

The nrpe binary and plugins where compiled on the remote hosts, as described
on the NRPE-README file.
On all those systems I created a 'netsaint' user and its files are owned by
netsaint.other.

Could someone please shed some light? because I'm lost... surely I'm
overseeing something obvious 8-)


Thanks a lot in advance!

Martin

--
Martin Mielke - [email protected]
THALES Information Systems - http://www.thales-is.com/
[ echo "\$0&\$0">_;chmod +x _;./_ ]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.