NobodyNew wrote:I don't understand what you are saying the resolution for this is.
There is no /usr/local/nagios/etc/nrpe/ directory, nor is there a /macosx/subcomponents/nrpe/mods/cfg/nrpe/ directory.
There is a /usr/local/nagios/etc/nrpe.cfg file.
There may some confusion that I'll clear up.
The version of NRPE that you originally had trouble with (macosx-nrpe-agent) automates the install of NRPE, the plugins, adds extra plugins and is specifically for people using Nagios XI as it works well with the wizard.
As we already identified it's broken (and a bug report has been filed to fix it).
So to get you a working NRPE build I gave you the NRPE v3 install guide which works on OS X. However this is just the "vanilla basics" and does not have all the specific stuff the macosx-nrpe-agent does. NRPE v3 was only recently released so we haven't had a chance to update our macosx-nrpe-agent to v3 yet.
We can however help you get it working the same.
If you extracted macosx-nrpe-agent to
/tmp/macosx-nrpe-agent/
Create the dirtectory
/usr/local/nagios/etc/nrpe/
Copy
/tmp/macosx-nrpe-agent/subcomponents/nrpe/mods/cfg/common.cfg to
/usr/local/nagios/etc/nrpe/
Edit the file
/usr/local/nagios/etc/nrpe.cfg
Add the line:
include_dir=/usr/local/nagios/etc/nrpe
Save
If you followed the guide and installed the Nagios Plugins that are available via Homebrew, these get installed to
/usr/local/sbin/ so the config file also needs to be updated.
Code: Select all
sudo sed -i '' 's/nagios\/libexec/sbin/' /usr/local/nagios/etc/nrpe/common.cfg
Restart NRPE:
Code: Select all
sudo launchctl stop org.nagios.nrpe
sudo launchctl start org.nagios.nrpe
Any missing plugins will be located in:
/tmp/macosx-nrpe-agent/subcomponents/extraplugins/plugins and you can copy them to
/usr/local/sbin/