RE: NRPE: getting mad!

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

I did some modifications on my NetSaint installation and the NRPE-plugin
following your example.
It's now weird, as the check_nrpe command works from the command-line, as
shown here:

---
netsainthost:/usr/local/netsaint/libexec # ./check_nrpe sunblade1000 -c
check_disk1
DISK OK - [13359230 kB (59%) free on /dev/dsk/c1t1d0s0]

netsainthost:/usr/local/netsaint/libexec # ./check_nrpe sunblade1000 -c
check_disk2
DISK OK - [17115257 kB (49%) free on /dev/dsk/c1t2d0s0]

netsainthost:/usr/local/netsaint/libexec # ./check_nrpe sunblade1000 -c
check_load
load average: 0.73, 0.85, 1.12
---

...but not from the NetSaint Host...
---
1034183328] SERVICE ALERT:
sunblade1000;RemoteUsers;CRITICAL;SOFT;1;Connection refused by host
[1034183388] SERVICE ALERT:
sunblade1000;RemoteUsers;CRITICAL;SOFT;2;Connection refused by host
[1034183448] SERVICE ALERT:
sunblade1000;RemoteUsers;CRITICAL;HARD;3;Connection refused by host
[1034183448] SERVICE NOTIFICATION:
netsaint;fidelsun;RemoteUsers;CRITICAL;notify-by-email;Connection refused by
host
---

Please, read on...


[ snip ]

> The other difference is that I'm not using inetd to run nrpe.  I
> have a run script
> in /etc/rc2.d which has
>
> #!/bin/sh
> /usr/local/bin/netsaint/libexec/nrpe -d
> /usr/local/netsaint/libexec/nrpe.cfg
>
> Sun's inetd seemed not to play nice with nrpe here...

Nice to know it...
I also created such startup script...


> ------------------------------------------------------------------
> ------------------------
>
> Below is the nrpe.cfg file on the Sun Client box as well.
> ####################################################
> # Sample NRPE Config File
> # Written by: Ethan Galstad ([email protected])
> #
> # Last Modified: 03/30/2000
> ####################################################
>
>
>
> # PORT NUMBER
> # Port number we should wait for connections on.
> # This must be a non-priveledged port (i.e. > 1024).
>
> server_port=5666
>
>
>
> # SERVER ADDRESS
> # Address that nrpe has to bind to in case there are
> # more as one interface and we do not want nrpe to bind
> # (thus listen) on all interfaces.
>
> server_address=89.20.32.202
>

I understand that this IP points to the host where 'nrpe' is running...
isn't it?

>
>
> # ALLOWED HOST ADDRESSES
> # This is a comma-delimited list of IP address of hosts that are allowed
> # to talk to the NRPE daemon.
> #
> # Note: The daemon only does rudimentary checking of the client's IP
> # address.  I would highly recommend adding entries in your
> /etc/hosts.allow
> # file to allow only the specified host to connect to the port
> # you are running this daemon on.
>
> #
> #  Houuam is the Netsaint server
> #
>
> allowed_hosts=127.0.0.1,89.20.32.74,89.20.32.200
>

Among these addresses you put the NetSaint host?

>
>
> # DEBUGGING OPTION
> # This option determines whether or not debugging
> # messages are logged to the syslog facility. 0=off, 1=on
>
> debug=1
>

[ snip ]

> command[check_zombie_procs]=/usr/local/netsaint/libexec/check_procs 5 10 Z

this check reports 0 zombie procs
---
netsainthost:/usr/local/netsaint/libexec # ./check_nrpe sunblade1000 -c
check_zombie_procs
OK - 0 processes running with STATE = Z
---

...but there are 3 of them on the system...
---
# ps -ef | grep defunct
  cestix 15105 28209  0                   0:00 <defunct>
  cestix 16017 28209  0                   0:00 <defunct>
  cestix  8825 28209  0                   0:00 <defunct>
  cestix 12696 28209  0                   0:00 <defunct>
---

Any ideas now???

Thanks in advance!


Martin





-------------------------------------------------------
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.