106 | | To be done. |
| 106 | === `NAGIOS_BASE_HOST` === |
| 107 | A structure template defining a basic host, with all fields except, perhaps, an alias, set to sensible values. |
| 108 | === `HW_LISTINGS` === |
| 109 | |
| 110 | Lists all machines, grouped by hardware characteristics. It is set autmatically by ''monitoring/nagios/cfg'' and cannot be modified. |
| 111 | ==== `per_hardware` ==== |
| 112 | nlist in which keys are the hardware templates (the values of `DB_MACHINE`). The value is another structure: |
| 113 | ===== `host_list` ===== |
| 114 | List of all hosts associated to that hardware template. |
| 115 | ===== `hardware_structure` ===== |
| 116 | The complete hardware information as described on the hardware template. |
| 117 | ==== `per_cpu` ==== |
| 118 | nlist with the machines grouped by number of processors. The key is in the form "_n", where n is the number of CPUs. The value is the list of hosts. |
| 119 | === `HOSTSLIST` === |
| 120 | Plain nlist with all hosts structures, extracted from `HW_LISTINGS`. |
| 121 | ===`NAGIOS_EXTRA_HOSTS`=== |
| 122 | List of FQDNs with additional hosts to be monitored. Put here any host outside your CDB you want to monitor, for instance routers or external DNS servers. |
| 123 | ===`NAGIOS_COMMANDS_TEMPLATE`=== |
| 124 | A structure template with home-made commands. A default set with all commnands used today (6/2008) at UAM is provided. |
| 125 | ===`NAGIOS_HOSTSALIASES_TEMPLATE=== |
| 126 | A template with additional per-host customizations. To be improved. |
| 127 | ===`NAGIOS_HOSTGROUPS_TEMPLATE`=== |
| 128 | A structure template with all hostgroups definitions. |
| 129 | ===`NAGIOS_MACROS_TEMPLATE`=== |
| 130 | A structure template with any user-defined macros, not enclosed by '$' symbols. For instance, for setting `$USER1$, do: |
| 131 | {{{ |
| 132 | "USER1" = "/usr/lib/nagios/plugins"; |
| 133 | }}} |
| 134 | ===`NAGIOS_TIMEPERIODS_TEMPLATE`=== |
| 135 | A structure template with time periods definitions. |
| 136 | ===`NAGIOS_CONTACTS_TEMPLATE`=== |
| 137 | A structure template with all contacts. |
| 138 | ===`NAGIOS_CONTACTGROUPS_TEMPLATE`=== |
| 139 | A structure template with the different ways the CONTACTS are grouped. |
| 140 | ===`NAGIOS_SERVICE_TEMPLATES`=== |
| 141 | List with the names of the nagios structure templates that define each sensor. |
| 142 | ===`NAGIOS_EXPLICIT_SERVICES`=== |
| 143 | List with the complete definition of any services you don't want to specify as structure templates. |
| 144 | ===`NAGIOS_GENERAL_OPTIONS`=== |
| 145 | nlist with all generic options you may want, such as whether to accept external commands or not. Check the Nagios documentation to see what options are available. |
| 146 | ===`NAGIOS_EXTERNAL_FILES`=== |
| 147 | List of external files to be added to Nagios configuraton. |