Installing NRPE on Red hat 6

Red Hat 6 does not natively support NRPE/Nagios with the default package manager. Luckily, DAG can save the day again, just as with Red Hat 5 🙂

Simply add the mirror spesified in the link above to your server and you get the ability to add the NRPE or other Nagios packages without too much hazzle.

In my case with a 64bit system, the way to get NRPE installed was as simple as this:

rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

yum install nagios-nrpe

Installing NRPE on Red hat 5

Red Hat does not natively support NRPE/Nagios with the default package manager. Luckily, DAG can save the day 🙂

Simply add the mirror spesified in the link above to your server and you get the ability to add the NRPE or other Nagios packages without too much hazzle.

In my case with a 64bit system, the way to get NRPE installed was as simple as this:

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

yum install nagios-nrpe

Failed to obtain lock on file /var/run/nagios.pid: Permission denied

This error is caused by Nagios not having access to the folder where it should save it`s PID file. You can change the path for the PID file (and then also fixing the issue) by editing your nagios.conf (usually /etc/nagios/nagios.conf).

Locate the lock_file setting:

lock_file=/var/run

And change it to another path, like for example /tmp.

Start up Nagios again and it should be much happier 🙂