summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/munin.pp')
-rw-r--r--manifests/munin.pp34
1 files changed, 34 insertions, 0 deletions
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_',
+ }
+}