summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-03-01 23:02:20 +0100
committermh <mh@immerda.ch>2011-03-01 23:02:20 +0100
commit9ab5f4e33884d59c1edcda28e305318f701ddcff (patch)
tree02ddc7794f9f918376f1e3ae108d18e50f504f19 /manifests
parent56a1d47b3e72c2acf83894ea12a944c604b1c094 (diff)
downloadpuppet-ekeyd-9ab5f4e33884d59c1edcda28e305318f701ddcff.tar.gz
puppet-ekeyd-9ab5f4e33884d59c1edcda28e305318f701ddcff.tar.bz2
add munin plugins
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
-rw-r--r--manifests/munin.pp16
2 files changed, 20 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 036ff82..204d877 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,4 +17,8 @@ class ekeyd(
include shorewall::rules::ekeyd
}
}
+
+ if $use_munin {
+ include ekeyd::munin
+ }
}
diff --git a/manifests/munin.pp b/manifests/munin.pp
new file mode 100644
index 0000000..c2566f3
--- /dev/null
+++ b/manifests/munin.pp
@@ -0,0 +1,16 @@
+class ekeyd::munin {
+ munin::plugin::deploy{'ekeyd_stat_':
+ source => "ekeyd/munin/ekeyd_stat_" ,
+ ensure => "absent",
+ }
+ munin::plugin{
+ [ 'ekeyd_stat_total_EntropyRate',
+ 'ekeyd_stat_total_TotalEntropy',
+ 'ekeyd_stat_total_KeyVoltage',
+ 'ekeyd_stat_total_FipsFrameRate',
+ 'ekeyd_stat_KeyTemperatureC' ]:
+ require => Munin::Plugin::Deploy['ekeyd_stat_'],
+ ensure => 'ekeyd_stat_',
+ config => "'user root\nenv.controlsocket /var/run/ekeyd.sock",
+ }
+}