]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Setting up sensors_ munin plugins
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 18:24:05 +0000 (15:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Jun 2013 18:24:05 +0000 (15:24 -0300)
manifests/base/physical.pp

index b2f2fcd47a3ad04560411b326aac21ddc9a340f9..f2ab47708a342dbc0569ed1882a2641af7c79761 100644 (file)
@@ -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