AFP548 Changing the world one server at a time.

Nagios and NRPE under 10.4

Home › Forums › OS X Server and Client Discussion › Questions and Answers › Nagios and NRPE under 10.4

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #364360
    Anonymous
    Guest

    Has anyone had success in getting nrpe running on 10.4 properly servicing calls requests from nagios?

    It and the plugins seemed to configure and make alright. I created a launchd plist for it and it appears in the output of ‘launchctl list’ (included below)

    I added an entry in /etc/services and can see the listener with netstat.

    I keep getting this error in the systemlog:
    nrpe[2993]: Network server bind failure (48: Address already in use)

    And nagios reports the following:
    CHECK_NRPE: Error – Could not complete SSL handshake.

    I’ve confirmed that check_nrpe and nrpe are the same version and both seem to be compiled with SSL support.

    thoughts?
    chimchim

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>Label</key>
            <string>com.nagios.nrpe</string>
            <key>Program</key>
            <string>/usr/local/nagios/nrpe</string>
            <key>ProgramArguments</key>
            <array>
                    <string>/usr/local/nagios/nrpe</string>
                    <string>-c</string>
                    <string>/usr/local/nagios/nrpe.cfg</string>
                    <string>-d</string>
            </array>
            <key>SessionCreate</key>
            <true/>
            <key>Sockets</key>
            <dict>
                    <key>Listeners</key>
                    <dict>
                            <key>SockServiceName</key>
                            <string>nrpe</string>
                    </dict>
            </dict>
            <key>StandardErrorPath</key>
            <string>/dev/null</string>
            <key>inetdCompatibility</key>
            <dict>
                    <key>Wait</key>
                    <false/>
            </dict>
    </dict>
    </plist>
    
    
    #364643
    Anonymous
    Guest

    I just googled for the same problem and found this thread…

    In short : – The first programArgument is not needed. And I needed to add a working directory. Here’s part of my nrpe.plist :

    <dict>
            <key>Label</key>
            <string>com.nagios.nrpe</string>
            <key>UserName</key>
            <string>www</string>
            <key>GroupName</key>
            <string>www</string>
            <key>Program</key>
            <string>/usr/local/nrpe/nrpe</string>
            <key>WorkingDirectory</key>
            <string>/usr/local/nrpe/</string>
            <key>ProgramArguments</key>
            <array>
                    <string>-c nrpe.cfg</string>
                    <string>--inetd</string>
            </array>
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.