Nagios3

From Indie IT Wiki
Jump to: navigation, search

INSTALLATION

Server Side Monitoring Software

sudo aptitude install nagios3 nagios-nrpe-plugin
sudo usermod -a -G nagios www-data
sudo chmod -R +x /var/lib/nagios3/
sudo nano /etc/nagios3/nagios.cfg
     check_external_commands=1
sudo /etc/init.d/nagios3 restart
sudo aptitude install nagios-nrpe-server nagios-plugins
sudo nano /etc/nagios/nrpe.cfg
     allowed_hosts=127.0.0.1 192.168.0.171

Thanks to Unixmen

Client Side Software (Linux)

sudo apt-get install nagios-nrpe-server nagios-plugins
nano /etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1 monitoring.server.ip.address
/etc/init.d/nagios-nrpe-server restart

Server Side Configuration Files

Nagios3 stores its main configuration file in a different location to previous versions, it is now located at:

/etc/nagios3/nagios.cfg

Now separate files for each monitored client, located at:

/etc/nagios3/servers/

There is a separate file for each monitored client:

/etc/nagios3/servers/exampleserver.co.uk.cfg
/etc/nagios3/servers/anotherexample.com.cfg

HOWTO: Only Send 1 Notification Alert

notification_interval 0

Links

Acronyms

  • NRPE = Nagios Remote Plugin Executor