From d97d630f5dc6933f11b9cc93e197c40fba0aed8a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 7 Jun 2013 15:24:05 -0300 Subject: Setting up sensors_ munin plugins --- manifests/base/physical.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'manifests') diff --git a/manifests/base/physical.pp b/manifests/base/physical.pp index b2f2fcd..f2ab477 100644 --- a/manifests/base/physical.pp +++ b/manifests/base/physical.pp @@ -1,14 +1,23 @@ class nodo::base::physical inherits nodo::base::host { class { [ 'nodo::subsystem::ups', 'smartmontools' ]: } - # SMART monitoring + # SMART and sensors monitoring $munin = hiera('nodo::host::use_munin', True) if $munin == true { include munin::plugins::smart + munin::plugin { 'smart_sda': ensure => 'smart_', config => "user root\ngroup disk", } + + package { 'lm-sensors': + ensure => present, + } + + munin::plugin { [ 'sensors_fan', 'sensors_volt', 'sensors_temp' ]: + ensure => 'sensors_', + } } # Entropy key -- cgit v1.2.3