This dictionary will be read (using .items()) to generate the file /etc/nagios4/nagios.cfg so any supported Nagios4 configuration can be included
### Dictionary cgi_config
This dictionary will be read (using .items()) to generate the file /etc/nagios4/cgi.cfg so any supported Nagios4 configuration can be included
### List monitored_hosts
This is list of monitored hosts clients, optionally can include services specific for the host, but it's recommended to reduce this usage and include as many services as possible in the hostgroups list.
Example:
```yaml
- host_name: localhost
use: linux-server
alias: Server0
address: 127.0.0.1
services:
- use: local-service
description: PING
check_command: check_ping!100.0,20%!500.0,60%
```
### List hostgroups
This is a list of groups and their members (you have to declare the same members as hosts in monitored_hosts).
```yaml
- hostgroup_name: linux servers
alias: Linux Servers
members:
- localhost
- server1
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
```
### Other lists
There are similar list of objects supported by Nagios like:
- commands
- contacts
- templates
- timeperiods
### Apache specific virtual hosts list
The list vhosts contains at least one virtual host to configure Apache2.