From 9ab5f4e33884d59c1edcda28e305318f701ddcff Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 1 Mar 2011 23:02:20 +0100 Subject: add munin plugins --- manifests/init.pp | 4 ++++ manifests/munin.pp | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 manifests/munin.pp (limited to 'manifests') 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", + } +} -- cgit v1.2.3