NRPE SME8 Installation
Configure the dag repositoy
The following command will configure the dag repository on SME Server.
/sbin/e-smith/db yum_repositories set dag repository \
Name 'Dag - EL5' \
BaseURL '
http://apt.sw.be/redhat/el5/en/$basearch/dag' \
EnableGroups no \
GPGCheck yes \
GPGKey
http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
After adding it to the database we have to update the changes to the configuration file:
signal-event yum-modify
/usr/bin/yum --enablerepo=dag install \
nagios-plugins \
nagios-plugins-setuid \
perl-Config-Tiny \
perl-Class-Accessor
Copy nrpe rpm's and install
yum localinstall nagios-3.2.1-5.el5.rf.i386.rpm
yum localinstall nagios-nrpe-2.5.2-1.el5.rf.i386.rpm
yum localinstall nagios-plugins-nrpe-2.5.2-1.el5.rf.i386.rpm
vim /etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1,62.249.247.18
cd /etc/rc7.d
cp -s /etc/init.d/nrpe S95nrpe
port forward 5666 to localhost
vim /etc/e-smith/templates/etc/hosts.allow/nrpe
{
$OUT="nrpe: " . ($nrpe{HostsAllow} ? $nrpe{HostsAllow} : "127.0.0.1 62.249.247.18" );
}
expand-template /etc/hosts.allow
service nrpe restart