summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-05-15 13:27:11 +0200
committermh <mh@immerda.ch>2009-05-15 13:27:11 +0200
commit783ae21de4cadbd9e8e3cdf62d4b0d6039586d78 (patch)
treef9612adfd338d6c5d4f1ddf71b2cb917c8b23044
parentbe3679ae8d0e4547f75829642bc1f86e6402cd96 (diff)
added possiblity to manage external commands dir
-rw-r--r--README10
-rw-r--r--manifests/init.pp8
2 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
index 9886479..9356e86 100644
--- a/README
+++ b/README
@@ -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 {