diff options
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | manifests/init.pp | 8 |
2 files changed, 18 insertions, 0 deletions
@@ -68,6 +68,16 @@ neither automatically valid - it is not guaranteed that all components declare a nagios::service - and even if the configuration is valid it definitly is unverified, since that is always a judgment call for an external observer. +Variables +========= + +Options to change the behavior of the nagios module: + +- nagios_allow_external_cmd: set it to true, if you'd like to ensure that apache can + write to the external command file. Mandatory using + external commands. + + Examples ======== diff --git a/manifests/init.pp b/manifests/init.pp index 1fac008..9557d2e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -146,6 +146,14 @@ class nagios::base { if $use_munin { include munin::plugins::nagios } + + if $nagios_allow_external_cmd { + file{'/var/spool/nagios/cmd': + ensure => 'directory', + require => Package['nagios'], + owner => apache, group => nagios, mode => 2660; + } + } } # end nagios::base class nagios::centos inherits nagios::base { |