Saturday, August 13, 2011

Installing Nagios-plugins and NRPE on Centos 6

To monitor remote hosts CPU load, disk partitions, processes etc with Nagios, requires to install NRPE and nagios-plugins on the remote host.

Nagios-plugins and NRPE is not available from Centos official repositories, so first of all we need to configure RPMforge> repo from where to install the required packages.

Read my previous article before configuring and installing anything from third party repo.

Installing RPMforge on Centos 6

Download and install the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

# rpm -Uvh

# rpm -Uvh

Do not forget to set the priority,

vi /etc/yum.repos.d/rpmforge.repo

name = RHEL $releasever - - dag
baseurl =$basearch/rpmforge
mirrorlist =
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

Now everything is setup now you can install nagios-plugins and nrpe packages from RPMforge repo

# yum install nagios-plugins nagios-nrpe

Running NRPE under xinetd

Edit /etc/xinetd.d/nrpe for

disable         = no
only_from       = Nagios ServerIP

Restart xinetd service
# /etc/init.d/xinetd restart


  1. Thank you Askar!
    I got stuck with the rpmforge 5 release after installing nagios and centreon and as a result updates to CentOs6 would not install.

  2. Thanks for posting this.

    With some of our servers, we also had to install xinetd, start it (rather than restart), and set it for automatic startup with chkconfig xinetd on.