Installing NRPE on a large number of RHEL servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
genna
Posts: 34
Joined: Mon Aug 14, 2017 8:10 pm

Installing NRPE on a large number of RHEL servers

Post by genna »

Hi,
We are planning to implement Nagios XI in our environment which has large number ( hundreds) of RHEL 6/7 servers. I'm looking at the best way of rolling out NRPE agent. It appears that a pre-built version is fairly old - v2.15. The v3.2 that most doco covers needs to be built.
My questions are:
Are there any plans to release a more recent pre-built version?
If I have to build it, do I need to do it on every host ( which sounds a very inefficient) or can I build once and distribute it. I don't seem to be be able to find instructions how to do so. ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing NRPE on a large number of RHEL servers

Post by scottwilkerson »

genna wrote:Hi,
We are planning to implement Nagios XI in our environment which has large number ( hundreds) of RHEL 6/7 servers. I'm looking at the best way of rolling out NRPE agent. It appears that a pre-built version is fairly old - v2.15. The v3.2 that most doco covers needs to be built.
My questions are:
Are there any plans to release a more recent pre-built version?
If I have to build it, do I need to do it on every host ( which sounds a very inefficient) or can I build once and distribute it. I don't seem to be be able to find instructions how to do so. ?
We will be adding it to our package, but can't currently state the timeline. However this package does still compile on the sever.

You could build it on each host version (6/7) however you would need to create a whole installer that builds the services, places all the files/plugins in the correct directory, etc.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Installing NRPE on a large number of RHEL servers

Post by mcapra »

scottwilkerson wrote: You could build it on each host version (6/7) however you would need to create a whole installer that builds the services, places all the files/plugins in the correct directory, etc.
Chef, Ansible, or Puppet might be useful to this end.

Here's a cookbook for Chef that looks ready to go for NRPE:
https://github.com/sous-chefs/nrpe
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Installing NRPE on a large number of RHEL servers

Post by dwhitfield »

mcapra wrote:Ansible
Considering this is XI, ansible might be the easiest, since Red Hat bought Ansible Inc.

Salt and CFEngine are also popular: https://en.wikipedia.org/wiki/Compariso ... t_software
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Installing NRPE on a large number of RHEL servers

Post by gormank »

I created a puppet module to install nrpe using the fullinstall script so now when a new host is created, all I have to do is add the host in NXI, and add it to a hostgroup or two and monitoring is done.
I won't say it was easy, since it was my first module, we're behind a proxy, use Satellite, and finally, doing the install via the script, it wants to run sequentially, which is not what puppet likes.
I had to make various parts get done via puppet and trick the script into thinking it had done them by creating the some of the inslalled* files. For example, I didn't want the repos set up so I had puppet create the installed.repos file.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Installing NRPE on a large number of RHEL servers

Post by tmcdonald »

The recommendations for Ansible, Puppet, Salt, Chef, etc. are pretty standard in the IT field for any question of "How do I do X across a lot of servers?"
Former Nagios employee
Locked