Nagios Monitoring Agent
- Installed using Yum Install Nagios
- Installed to /etc/nagios
- nagios.cfg defines the commands file and location of the other config files
- commands.cfg defines the scripts located in /usr/lib or lib64/nagios/plugins/ to be run
- i.e. $USER1$/check_http -H $HOSTADDRESS$ -S -a nagioscheck:nag1oscheck
- Within /etc/nagios/etc there are hosts.cfg, services.cfg, servicegroups.cfg, hostgroups.cf, contacts.cfg, and contactgroups.cfg
- hosts.cfg contains any device that needs to be monitored
- services.cfg defines the specific monitoring service and warning/critical parameters if any
- servicgroups.cfg is used to organize in the web view
- hostgroups.cfg matches the hosts in hosts.cfg to the services in services.cfg
- In order to login to nagios, the ldap user must be listed in the contacts.cfg and assigned to a contactgroup
- After making changes in nagios run “/usr/bin/nagios -v /etc/nagios/nagios.cfg” to make sure there are not any mistakes
- service nagios restart