summaryrefslogtreecommitdiffstats
path: root/modules/partofme
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-12-28 05:41:31 -0500
committerJesse Luehrs <doy@tozt.net>2018-12-28 05:41:31 -0500
commitd19fcd6be3c178003f06a24fd0f2318a60a3297a (patch)
tree983ffd706b1a282cc4e70e3c68b4a7f3da528f08 /modules/partofme
parent2f34d7a0739661033aca00e047719a9236248117 (diff)
downloadpuppet-tozt-d19fcd6be3c178003f06a24fd0f2318a60a3297a.tar.gz
puppet-tozt-d19fcd6be3c178003f06a24fd0f2318a60a3297a.zip
add smartmontools monitoring to partofme munin
Diffstat (limited to 'modules/partofme')
-rw-r--r--modules/partofme/files/munin-plugin-smart3
-rw-r--r--modules/partofme/manifests/monitoring.pp19
2 files changed, 20 insertions, 2 deletions
diff --git a/modules/partofme/files/munin-plugin-smart b/modules/partofme/files/munin-plugin-smart
new file mode 100644
index 0000000..82ff97b
--- /dev/null
+++ b/modules/partofme/files/munin-plugin-smart
@@ -0,0 +1,3 @@
+[smart_*]
+ user root
+ group disk
diff --git a/modules/partofme/manifests/monitoring.pp b/modules/partofme/manifests/monitoring.pp
index 95833b0..54a402f 100644
--- a/modules/partofme/manifests/monitoring.pp
+++ b/modules/partofme/manifests/monitoring.pp
@@ -35,7 +35,7 @@ class partofme::monitoring {
'if_algo',
'if_enp3s0',
]:
- source => 'if_',
+ source => 'if_';
}
munin::plugin {
@@ -43,6 +43,21 @@ class partofme::monitoring {
'if_err_algo',
'if_err_enp3s0',
]:
- source => 'if_err_',
+ source => 'if_err_';
+ }
+
+ munin::plugin {
+ [
+ 'smart_sda',
+ 'smart_sdb',
+ 'smart_sdc',
+ 'smart_sdd',
+ ]:
+ source => 'smart_';
+ }
+
+ file { '/etc/munin/plugin-conf.d/smart':
+ source => 'puppet:///modules/partofme/munin-plugin-smart',
+ require => Package['munin-node'];
}
}