diff options
author | Gabriel Filion <lelutin@gmail.com> | 2011-01-14 17:45:50 -0500 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2011-01-14 17:45:50 -0500 |
commit | 95ff26b01a6d3cfe58490d39a6abe0e4f20d3eab (patch) | |
tree | f3340ead8d5da2f42c1a00fb18a746a49eaf532e /manifests | |
parent | 5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff) |
Add missing Nagios resource types to base.pp
Some Nagios resource types are currently not being managed. This has the
result that exported resources for those types are not collected by
nagios servers, and also that configuration files for those resources
are put in their default path which is wrong for some OSes and with
possibly wrong permissions.
Add the missing resources to base.pp
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 6106ab2..a798bcd 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -73,10 +73,13 @@ class nagios::base { Nagios_contact <<||>> Nagios_contactgroup <<||>> Nagios_host <<||>> + Nagios_hostdependency <<||>> + Nagios_hostescalation <<||>> Nagios_hostextinfo <<||>> Nagios_hostgroup <<||>> Nagios_hostgroupescalation <<||>> Nagios_service <<||>> + Nagios_servicegroup <<||>> Nagios_servicedependency <<||>> Nagios_serviceescalation <<||>> Nagios_serviceextinfo <<||>> @@ -98,6 +101,14 @@ class nagios::base { target => "${nagios_cfgdir}/conf.d/nagios_host.cfg", notify => Service['nagios'], } + Nagios_hostdependency <||> { + target => "${nagios_cfgdir}/conf.d/nagios_hostdependency.cfg", + notify => Service['nagios'], + } + Nagios_hostescalation <||> { + target => "${nagios_cfgdir}/conf.d/nagios_hostescalation.cfg", + notify => Service['nagios'], + } Nagios_hostextinfo <||> { target => "${nagios_cfgdir}/conf.d/nagios_hostextinfo.cfg", notify => Service['nagios'], @@ -114,6 +125,10 @@ class nagios::base { target => "${nagios_cfgdir}/conf.d/nagios_service.cfg", notify => Service['nagios'], } + Nagios_servicegroup <||> { + target => "${nagios_cfgdir}/conf.d/nagios_servicegroup.cfg", + notify => Service['nagios'], + } Nagios_servicedependency <||> { target => "${nagios_cfgdir}/conf.d/nagios_servicedependency.cfg", notify => Service['nagios'], @@ -131,14 +146,17 @@ class nagios::base { notify => Service['nagios'], } - file{[ "${nagios_cfgdir}/conf.d/nagios_command.cfg", - "${nagios_cfgdir}/conf.d/nagios_contact.cfg", + file{[ "${nagios_cfgdir}/conf.d/nagios_command.cfg", + "${nagios_cfgdir}/conf.d/nagios_contact.cfg", "${nagios_cfgdir}/conf.d/nagios_contactgroup.cfg", "${nagios_cfgdir}/conf.d/nagios_host.cfg", + "${nagios_cfgdir}/conf.d/nagios_hostdependency.cfg", + "${nagios_cfgdir}/conf.d/nagios_hostescalation.cfg", "${nagios_cfgdir}/conf.d/nagios_hostextinfo.cfg", "${nagios_cfgdir}/conf.d/nagios_hostgroup.cfg", "${nagios_cfgdir}/conf.d/nagios_hostgroupescalation.cfg", "${nagios_cfgdir}/conf.d/nagios_service.cfg", + "${nagios_cfgdir}/conf.d/nagios_servicegroup.cfg", "${nagios_cfgdir}/conf.d/nagios_servicedependency.cfg", "${nagios_cfgdir}/conf.d/nagios_serviceescalation.cfg", "${nagios_cfgdir}/conf.d/nagios_serviceextinfo.cfg", |