Page 1 of 1
Nagios client RPM
Posted: Thu Mar 30, 2017 4:50 pm
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?
Re: Nagios client RPM
Posted: Thu Mar 30, 2017 4:57 pm
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.
Re: Nagios client RPM
Posted: Fri Mar 31, 2017 12:06 pm
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.
Re: Nagios client RPM
Posted: Fri Mar 31, 2017 12:16 pm
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.
Re: Nagios client RPM
Posted: Tue Apr 25, 2017 11:14 am
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.
Re: Nagios client RPM
Posted: Tue Apr 25, 2017 2:20 pm
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:
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:
Thank you
Re: Nagios client RPM
Posted: Thu Apr 27, 2017 4:22 pm
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?
Re: Nagios client RPM
Posted: Thu Apr 27, 2017 4:56 pm
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