Nagios3
From Indie IT Wiki
Revision as of 09:38, 9 April 2017 by imported>Indieit (→Acronyms)
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
- https://geekpeek.net/linux/
- http://www.beingyesterday.com/nagios/nagios3-on-ubuntu-14-server-lts/
- https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/quickstart-ubuntu.html
- https://help.ubuntu.com/community/Nagios3
Acronyms
- NRPE = Nagios Remote Plugin Executor