factored out munin plugin
authormh <mh@immerda.ch>
Sat, 19 Jul 2008 15:09:59 +0000 (15:09 +0000)
committermh <mh@immerda.ch>
Sat, 19 Jul 2008 15:09:59 +0000 (15:09 +0000)
manifests/init.pp
manifests/munin.pp [new file with mode: 0644]

index be83ba0..537718d 100644 (file)
@@ -11,7 +11,7 @@ class squid {
     }
 
     if $use_munin {
-        include munin::plugins::squid
+        include squid::munin
     }
 }
 
diff --git a/manifests/munin.pp b/manifests/munin.pp
new file mode 100644 (file)
index 0000000..f2e555f
--- /dev/null
@@ -0,0 +1,8 @@
+# manifests/munin.pp
+
+class squid::munin {
+    munin::plugin{ 'squid_cache': config => "user root\nenv.squidhost localhost\nenv.squidport 80"}
+    munin::plugin{ 'squid_icp': }
+    munin::plugin{ 'squid_requests': }
+    munin::plugin{ 'squid_traffic': }
+}