Configuring Nagios
- Create Templates for the below so that we can add all the generic information inside the template
- host definitions
- service definitions
- Create Commands and define all the necessary commands for performing checks
- Create hostgroups and add different hosts to host groups (allservers, webservers, dbservers )
- Now create service defintions where we define checks using commands defined at the host group level
Exercise
-
We have default nagios configuration in /usr/local/nagios/etc/objects
-
Now try to make that default nagios configuration broken down into
- nagioscfg
- commands
- timeperiods
- templates
- contacts
- hosts
- services
- nagioscfg
-
Change the nagios.cfg to use cfg_dir instead of cfg_file

