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?
Nagios client RPM
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Nagios client RPM
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.
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
Re: Nagios client RPM
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
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.
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
I read that epel nrpe packages are updated by the community, so they are generally a few versions behind...
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.avandemore wrote:repo.nagios.com is generally meant for the XI server, not the clients.
Re: Nagios client RPM
They would technically work for your intended purposes.
For NRPE:
OR if you downloaded the packages manually:
Run this command (it's a single command) to add the port to /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:
OR if you downloaded the packages manually:
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
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.rpmCode: Select all
yum install nagiosxi-nrpe-5-4.3.el6.i386.rpm nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpmCode: Select all
[ $(grep -c nrpe /etc/services) -eq "1" ] && echo 'nothing to do' || echo "nrpe 5666/tcp # Nagios NRPE" >> /etc/servicesThen edit /usr/local/nagios/etc/nrpe.cfg as normal and then restart XINETD:
Code: Select all
service xinetd restartFor 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.rpmCode: Select all
yum install ncpa-2.0.3.el6.x86_64.rpm nagiosxi-nagiosplugins-5-4.3.el6.x86_64.rpmCode: Select all
service ncpa_listener restartRe: Nagios client RPM
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
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
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