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

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
umuzitech
Posts: 6
Joined: Mon Jun 15, 2015 11:06 am

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

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
umuzitech
Posts: 6
Joined: Mon Jun 15, 2015 11:06 am

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

Post 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.
umuzitech
Posts: 6
Joined: Mon Jun 15, 2015 11:06 am

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

Post 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/
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked