NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
burkm
Posts: 31
Joined: Thu Jan 21, 2016 5:10 pm

NRPE 3.0.1 doesn’t work after upgrading to macOS Sierra

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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
Former Nagios employee
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

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

Post 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.
Previous Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

@burkm let us know if you get it figured out!
Former Nagios employee
Locked