summaryrefslogtreecommitdiffstats
path: root/modules/mail/manifests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-02-24 00:01:45 -0500
committerJesse Luehrs <doy@tozt.net>2019-02-24 00:04:51 -0500
commit367b31fd6e81acc9977a911db056de06879d5cef (patch)
tree9137f0fbefb844fa44986833daf5c6d648a04ac6 /modules/mail/manifests
parent11b0d552bf2f834e42bbf10eec9538ad363c7402 (diff)
downloadpuppet-tozt-367b31fd6e81acc9977a911db056de06879d5cef.tar.gz
puppet-tozt-367b31fd6e81acc9977a911db056de06879d5cef.zip
add munin configuration for mail
Diffstat (limited to 'modules/mail/manifests')
-rw-r--r--modules/mail/manifests/monitoring.pp67
1 files changed, 67 insertions, 0 deletions
diff --git a/modules/mail/manifests/monitoring.pp b/modules/mail/manifests/monitoring.pp
new file mode 100644
index 0000000..6ba485c
--- /dev/null
+++ b/modules/mail/manifests/monitoring.pp
@@ -0,0 +1,67 @@
+class mail::monitoring {
+ include munin::node
+ include munin::duplicati
+ include munin::tarsnap
+
+ file { "/etc/munin/plugin-conf.d/mail":
+ source => "puppet:///modules/mail/munin-plugin-conf",
+ require => Package["munin-node"],
+ notify => Service["munin-node"];
+ }
+
+ munin::plugin {
+ [
+ 'cpu',
+ 'df',
+ 'df_inode',
+ 'forks',
+ 'load',
+ 'memory',
+ 'ntp_offset',
+ 'processes',
+ 'swap',
+ 'threads',
+ 'uptime',
+ 'users',
+ 'vmstat',
+ ]:
+ }
+
+ munin::plugin {
+ [
+ 'fail2ban',
+ ]:
+ }
+
+ munin::plugin {
+ [
+ 'if_algo',
+ 'if_eth0',
+ ]:
+ source => 'if_',
+ }
+
+ munin::plugin {
+ [
+ 'if_err_algo',
+ 'if_err_eth0',
+ ]:
+ source => 'if_err_',
+ }
+
+ munin::plugin {
+ [
+ 'duplicati_duration',
+ 'duplicati_file_count',
+ 'duplicati_file_size',
+ 'duplicati_last_run',
+ ]:
+ }
+
+ munin::plugin {
+ [
+ 'tarsnap',
+ 'tarsnap_last_run',
+ ]:
+ }
+}