Repeated spawning of nrpe (10.5.8 - Mac OS X server)

John Hyde john.h.hyde at gmail.com
Thu Apr 29 22:01:38 CEST 2010


Hello all,

I'm having a bit of difficulty with an install of nrpe on a Mac. Everything
was working fine and suddenly the timeouts began to show up, causing
everything to go critical.

Here's the story, I've made the nrpe.plist per instructions on this link;
http://arfore.com/2008/10/12/starting-nrpe-via-launchd/?replytocom=1108#comment-1119

When I do a ps -A | grep nrpe there are over 450 sessions still running, and
a telnet to the server from my Nagios install to the server "Chiserv02" on
port 5666 opens and waits for its next instruction. The 'check_nrpe -H
chiserv02 -c check_ping -t 30' will ultimately fail after 30 seconds despite
the telnet session opening immediately.

The plist file I ultimately came up with (and is working fine on other
10.5.8 servers) is this;
<?xml version=.1.0. encoding=.UTF-8.?>
<!DOCTYPE plist PUBLIC .-//Apple//DTD PLIST 1.0//EN. .
http://www.apple.com/DTDs/PropertyList-1.0.dtd.>
<plist version=.1.0.>
        <dict>
                <key>KeepAlive</key>
        <dict>
                <key>NetworkState</key>
        <true/>
        </dict>
                <key>UserName</key>
                        <string>nagios</string>
                <key>GroupName</key>
                        <string>nagios</string>
                <key>ProgramArguments</key>
                        <array>
                                <string>/usr/local/nagios/bin/nrpe</string>
                                <string>-c</string>

 <string>/usr/local/nagios/etc/nrpe.cfg</string>
                                <string>-i</string>
                        </array>
                <key>Sockets</key>
                <dict>
                        <key>Listeners</key>
                        <dict>
                                <key>SockServiceName</key>
                                        <string>5666</string>
                                <key>SockType</key>
                                        <string>stream</string>
                                <key>SockFamily</key>
                                        <string>IPv4</string>
                        </dict>
                </dict>
                <key>inetdCompatibility</key>
        <dict>
                <key>Wait</key>
        <false/>
        </dict>
<key>Label</key>
<string>org.nagios.nrpe</string>
</dict>
</plist>

Thanks in advance,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100429/b29575ee/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list