Nagios client RPM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Nagios client RPM

Post by vmesquita »

Hello,

I am trying to find official RPMs to install Nagios NRPE, NCSA and NRDP clients on linux servers (RHEL6 and Cent-OS 6). I found this packages:

https://repo.nagios.com/

However it's hard to know what packages to install. So far those appear to be the needed ones:
nagiosxi-nagiosplugins-5-4.0.2.el6.x86_64
nagiosxi-nrpe-5-4.0.2.el6.x86_64
nagiosxi-nsca-5-4.0.2.el6.x86_64

NRDS would still be missing, and nagiosxi-nrds-5-4.0.2.el6.x86_64.rpm has lots of files that are not really needed for the client, including Windows Clients. Which ones should I use?
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagios client RPM

Post by avandemore »

I think what your are looking for is covered in these docs:

https://assets.nagios.com/downloads/nag ... _Agent.pdf
https://assets.nagios.com/downloads/nag ... -Addon.pdf
https://assets.nagios.com/downloads/nag ... h_NRDS.pdf

You will also find further information and in some cases clients if you run through the XI Wizard for the Agent and target host in question.

repo.nagios.com is generally meant for the XI server, not the clients.
Previous Nagios employee
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Nagios client RPM

Post by vmesquita »

But isn't there such a thing as a RPM with the NRPE and NCSA clients? Having only sources available make it hard to manage updates.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios client RPM

Post by dwhitfield »

Both come with the necessary files to create your own RPM:
https://github.com/NagiosEnterprises/ns ... /nsca.spec
https://github.com/NagiosEnterprises/nr ... pe.spec.in

Additionally, many distributions have NRPE repos. For example, it is in EPEL. NSCA is also in EPEL.

If you do not want to install the extra distro dependencies, or want to stay more current than the distributions, you will need to create your own RPMs.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Nagios client RPM

Post by vmesquita »

I read that epel nrpe packages are updated by the community, so they are generally a few versions behind...
avandemore wrote:repo.nagios.com is generally meant for the XI server, not the clients.
Is there any issue with using the packages available in this repository in clients? Except for maybe having extra binaries that would be unneeded. I just feel that this would make keeping the clients up to date so much easier.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios client RPM

Post by ssax »

They would technically work for your intended purposes.

For NRPE:

Code: Select all

yum install https://repo.nagios.com/nagios/6/nagiosxi-nrpe-5-4.3.el6.i386.rpm https://repo.nagios.com/nagios/6/nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpm
OR if you downloaded the packages manually:

Code: Select all

yum install nagiosxi-nrpe-5-4.3.el6.i386.rpm nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpm
Run this command (it's a single command) to add the port to /etc/services:

Code: Select all

[ $(grep -c nrpe /etc/services) -eq  "1" ] && echo 'nothing to do' || echo "nrpe            5666/tcp                # Nagios NRPE" >> /etc/services
Then edit /etc/init.d/nrpe and adjust your only_from line.

Then edit /usr/local/nagios/etc/nrpe.cfg as normal and then restart XINETD:

Code: Select all

service xinetd restart


For NCPA:

Code: Select all

yum install https://repo.nagios.com/nagios/6/ncpa-2.0.3.el6.x86_64.rpm https://repo.nagios.com/nagios/6/nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpm
OR if you downloaded the packages manually:

Code: Select all

yum install ncpa-2.0.3.el6.x86_64.rpm nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpm
Then edit your /usr/local/ncpa/etc/ncpa.cfg and change the community_string setting to what you will use and restart the ncpa_listener service:

Code: Select all

service ncpa_listener restart
Thank you
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Nagios client RPM

Post by vmesquita »

I tried to follow the procedures but the files /usr/local/ncpa/etc/ncpa.cfg and /etc/init.d/nrpe doesn't seem to exist after I install the packages. Can you please check?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios client RPM

Post by dwhitfield »

Unfortunately, the NRPE just installs check_nrpe.

NCPA did work, so I'm not sure why it didn't for you, but you didn't ask for NCPA initially so I wonder if it's relevant.

We are working to become official maintainers for CentOS, but unless that happens, I think your best bet is just going to build using the .spec. Here are instructions on how to do that: http://www.thegeekstuff.com/2015/02/rpm ... ge-example
Locked