Jump to content

Nagios-NRPE configuration for Tetra's Nagios Server

From TetraWiki


NRPE install on Centos 6 ( BLS International Sample )

Referance Document : https://tecadmin.net/install-nrpe-on-centos-rhel/

ON BLS server

Steps

Install EPEL Repo via

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Install Nagios Nrpe and Plugins

yum --enablerepo=epel -y install nrpe nagios-plugins-all

add in /etc/nagios/nrpe.conf

allowed_hosts=127.0.0.1,::1,122.160.21.105,122.160.197.243

Copy Command from old BLS server , paste in New server nrpe.conf . Also change each command to suite new environment

And then test each commend by running it and modify if required

For Zimbra Plugins Please follow

https://wiki.zimbra.com/wiki/Monitoring_Zimbra_Collaboration_Nagios

Restart NRPE on Client

/etc/init.d/nrpe restart 
chkconfig nrpe on

On Tetra's Nagios Server

Add new Host , go to /usr/local/nagios/etc/objects/linux-box.cfg Add following lines


define host{
               use            linux-server
               host_name      BLS ZIMBRA on DIGITALOCEAN
               alias          mail.blsinternational.net
               address        134.209.21.215
               hostgroups     Tetra Clients   ; Host groups
}

in /usr/local/nagios/etc/services directory create mail-zimbra-bls-disgitalocean.cfg and copy all content of old cfg chnage the hostname to new name 'BLS ZIMBRA on DIGITALOCEAN'

run

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

to check for any error

Restart nagios

now check in nagios web