This role is responsible for installing and configuring Nagios Core. In addition to nagios-core, the role will also install Nagios Plugins in order to make your nagios install useful. Some relevant documentation exists in defaults/main.yml related to the sources and installation options for both Nagios Core and Nagios Plugins.
Once installed, Nagios configuration can be set by declaring a list of nagios configurations to be installed through any combination of YAML, local files and/or local directories.
There are probably implications for your Python version in the template provided for custom nagios configs generated in YAML through this role. If you are making use of this feature, you should probably avoid using Python 2 as your Python interpreter when using this role.
All variables are described in defaults/main.yml.
None.
- hosts: nagios_servers
roles:
- include_role: dudefellah.nagios
vars:
nagios_configs:
- dest: objects/contacts-test.cfg
config:
contact:
contact_name: somebody
use: generic-contact
alias: Just Some Person
email: me@myhost
GPLv2+
Dan - github.com/dudefellah