| 158 | |
| 159 | The QWG tenplates contains some generic templates for Nagios master and slave servers. However, much of the configuration is site-specific. An example setup is provided under directory `sites/example/site/nagios`. This setup must be modified to match the desired configuration of your site. |
| 160 | |
| 161 | The generic setup consists of the following templates (under `standard/`): |
| 162 | * `monitoring/nagios/master`: template containing specific settings for the Nagios master server, such as accepting passive checks, running the web interface, collecting performance data etc. Service templates must be included as '''passive''' checks, therefore variable `NAGIOS_DEFAULT_SERVICE_TEMPLATE` is forced to `monitoring/nagios/services/passive-service`. |
| 163 | * `monitoring/nagios/slave`: template defining specific Nagios settings for a slave server, such as suppressing notifications, submission of check results, disabling performance data. |
| 164 | |
| 165 | The site-specific setup consists of the following templates (under `sites/example`): |
| 166 | * `site/nagios/master`: contains specific settings for the Nagios master for this cluster; specifically, it includes all host, hostgroup and service templates. |
| 167 | * `site/nagios/slave-A`: contains specific settings for a Nagios slave server that monitors a subset of the hosts. Only the hosts, hostgroups and services that are monitored by this server must be included. |
| 168 | * `site/nagios/slave-B`: this templates is very similar to the one for `slave-A`, except that is uses a different subset of hosts, hostgroups and services. |
| 169 | * `site/nagios/common`: site-specific configuration that is common to all servers (master and all slaves). |
| 170 | * `site/nagios/hosts/`: this directory contains the list of hosts per monitoring slave server (templates `cluster-A` and `cluster-B`) as well as a template aggregating all hosts for the master server (`all`). |
| 171 | * `site/nagios/hostsgroups/`: this directory contains the list of hostgroups per monitoring slave server and an aggregating template |
| 172 | * `site/nagios/nsca`: various variables for NSCA. |
| 173 | |