summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-01-27 00:22:27 +0000
committermh <mh@immerda.ch>2009-01-27 00:22:27 +0000
commitef960f8a85294e7b684d8f0dfffa3ae6fd70441e (patch)
tree2140e73ec7c0b84a379e5a66a7f5c6190276a5a3 /manifests
parent83970abe570f26acc988207db3d2c2228e08f2c0 (diff)
downloadpuppet-lighttpd-ef960f8a85294e7b684d8f0dfffa3ae6fd70441e.tar.gz
puppet-lighttpd-ef960f8a85294e7b684d8f0dfffa3ae6fd70441e.tar.bz2
added munin plugins for lighttpd
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/munin.pp34
2 files changed, 37 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 987af7d..d44d4a2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -38,4 +38,7 @@ class lighttpd::base {
owner => root, group => 0, mode => 0644;
}
+ if $use_munin {
+ include lighttpd::munin
+ }
}
diff --git a/manifests/munin.pp b/manifests/munin.pp
new file mode 100644
index 0000000..b2e24a8
--- /dev/null
+++ b/manifests/munin.pp
@@ -0,0 +1,34 @@
+class lighttpd::munin {
+ file{'/etc/lighttpd/conf.d/status.conf':
+ content => 'server.modules += ( "mod_status" )
+$HTTP["remoteip"] == "127.0.0.1" {
+ status.status-url = "/server-status"
+ status.config-url = "/server-config"
+}
+',
+ require => Package['lighttpd'],
+ notify => Service['lighttpd'],
+ owner => root, group => 0, mode => 0644;
+ }
+ munin::plugin::deploy{'lighttpd_':
+ source => "lighttpd/munin/lighttpd_",
+ ensure => absent,
+ require => File['/etc/lighttpd/conf.d/status.conf'],
+ }
+ munin::plugin{'lighttpd_total_accesses':
+ require => Munin::Plugin::Deploy['lighttpd_'],
+ ensure => 'lighttpd_',
+ }
+ munin::plugin{'lighttpd_total_kbytes':
+ require => Munin::Plugin::Deploy['lighttpd_'],
+ ensure => 'lighttpd_',
+ }
+ munin::plugin{'lighttpd_uptime':
+ require => Munin::Plugin::Deploy['lighttpd_'],
+ ensure => 'lighttpd_',
+ }
+ munin::plugin{'lighttpd_busyservers':
+ require => Munin::Plugin::Deploy['lighttpd_'],
+ ensure => 'lighttpd_',
+ }
+}