Page 1 of 1

How to install & enable NRPE on clean install of Core 4.1.0?

Posted: Tue Jun 16, 2015 6:19 am
by umuzitech
I have cleanly installed Core 4.1.0 and standard plugins yesterday on CentOS 6 x64
I have brought several Windows servers online using check_nt
I have obtained a plugin from the Exchange site which require check_nrpe

I can see that my Nagios instance doesn't have this plugin installed with the default plugin pack. I've tried to find several install docs but none seem to work correctly.

I followed one where I built the plugin from source, but then I couldn't find the cfg for it and it didn't open port 5666 in iptables.

Isn't there an easier way to get this up and running?

Re: How to install & enable NRPE on clean install of Core 4.

Posted: Tue Jun 16, 2015 12:55 pm
by tgriep
Here is the link for the check_nrpe plugin that you can download and compile the check_nrpe plugin on your Core system.
https://exchange.nagios.org/directory/A ... or/details

If you are currently using the check_nt to check your windows systems, did you install the NSClient++ software in them?
If so, that same software is used for the check_nrpe check and the software in the system will have to be configured.
Can you get the version of the NSClient++ software that is running in the windows systems?

Re: How to install & enable NRPE on clean install of Core 4.

Posted: Tue Jun 16, 2015 2:46 pm
by umuzitech
Using the software you linked (this is the same as I used before I created this thread) I did the following:
1. Untar
2. ./configure
3. make
4. make install-plugin

I was able to then find check_nrpe in /libexec but no configuration file was created anywhere. Additionally, the IPtables were still not updated either.

Isn't there a HOW-TO on this? I read that nrpe is very popular.

Btw, yes, I have NSClient++ installed on several Windows servers using check_nt and it's working fine. I found a plugin to monitor my MS Exchange server using check_nrpe and I want to enable it, as well as monitor many other linux boxes.

Re: How to install & enable NRPE on clean install of Core 4.

Posted: Tue Jun 16, 2015 3:31 pm
by umuzitech
SOLVED! (man, how do I keep solving these all on my own lol)

I found this article which I followed to the Tee. It now works correctly.

http://tecadmin.net/install-nrpe-on-centos-rhel/

Re: How to install & enable NRPE on clean install of Core 4.

Posted: Tue Jun 16, 2015 3:32 pm
by jolson
You must run the following commands as root.

Code: Select all

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
Unpack the installer, and run the install script:

Code: Select all

tar xzf linux-nrpe-agent.tar.gz
cd linux-nrpe-agent
./fullinstall
The script takes care of the following setup:

Installs prerequisite packages
Creates required users and groups
Defines services for xinetd
Compiles and installs the NRPE agent and Nagios plugins
Configures the firewall (except on SLES)
Configures the agent

The script will stop to prompt you once to ask for the IP address(es) for your monitoring server(s).

You will need to type either a single address or multiple addresses separated by spaces. This will configure the xinetd superdaemon to allow connections from those addresses to the NRPE agent.

You now have NRPE installed. You may remove any installation files in the tmp directory.

EDIT: Glad to hear you got this resolved!