Page 1 of 1

NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Posted: Tue Sep 27, 2016 11:21 am
by burkm
Hello,

NRPE 3.0.1 stopped responding after I upgraded to macOS Sierra.
check_nrpe returns

Code: Select all

(No output on stdout) stderr: connect to address 10.x.y.z port 5666: Connection refused 
This may be a macOS problem, but any ideas would be appreciated.

I have NRPE running via launchd. I reenabled and restarted it, but still no response. I turned the firewall off and it made no difference.
Here is my launchd file:

Code: Select all

<?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>Disabled</key>
    <false/>
    <key>Label</key>
    <string>org.nagios.nrpe</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/bin/nrpe</string>
        <string>-c</string>
        <string>/usr/local/etc/nrpe.cfg</string>
        <string>-i</string>
    </array>
    <key>inetdCompatibility</key>
    <dict>
        <key>Wait</key>
        <false/>
    </dict>
    <key>UserName</key>
    <string>_nagios</string>
    <key>GroupName</key>
    <string>_nagios</string>
    <key>InitGroups</key>
    <true/>
    <key>Sockets</key>
    <dict>
        <key>Listeners</key>
        <dict>
            <key>SockServiceName</key>
            <string>nrpe</string>
            <key>SockType</key>
            <string>stream</string>
            <key>SockFamily</key>
            <string>IPv4</string>
        </dict>
    </dict>
</dict>
</plist>
I see no messages in /var/log/system.log.

Thanks,
Michael

Re: NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Posted: Tue Sep 27, 2016 4:49 pm
by tmcdonald
Let's nmap the Mac from the XI server:

nmap <mac IP>

Can you also check over our troubleshooting guide? It is quite extensive:

https://assets.nagios.com/downloads/nag ... utions.pdf

Re: NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Posted: Tue Sep 27, 2016 5:01 pm
by avandemore
Other things to confirm:

You can do do a netstat -an | grep 5666 on the Mac Terminal to ensure it's listening.

Also an ipfw list from Terminal will show loaded fw rules.

Note: Those commands may require root access so use sudo if need be.

Re: NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Posted: Wed Sep 28, 2016 2:14 pm
by tmcdonald
@burkm let us know if you get it figured out!