summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-01-01 21:55:33 -0500
committerJesse Luehrs <doy@tozt.net>2019-01-01 21:55:33 -0500
commitc85d5940ebaf058af1115e26ed44f28df42d0680 (patch)
tree54300e6ef62061d20299c7ec1618b8ac136c30f7 /modules
parentf326e6981af46df99d0c012ebe02a1a6af253a63 (diff)
downloadpuppet-tozt-c85d5940ebaf058af1115e26ed44f28df42d0680.tar.gz
puppet-tozt-c85d5940ebaf058af1115e26ed44f28df42d0680.zip
backport a fix to a bug in one of the munin plugins
this should fix eth0 graphs on tozt
Diffstat (limited to 'modules')
-rw-r--r--modules/munin/manifests/node.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/munin/manifests/node.pp b/modules/munin/manifests/node.pp
index 6e6946b..8b05d6f 100644
--- a/modules/munin/manifests/node.pp
+++ b/modules/munin/manifests/node.pp
@@ -13,4 +13,13 @@ class munin::node {
content => template('munin/munin-node.conf'),
require => Package['munin-node'];
}
+
+ # XXX backport a fix since the arch linux package is out of date
+ # this can be removed once the arch package upgrades to at least 2.0.28
+ exec { 'fix munin if plugin speed calculation':
+ provider => shell,
+ command => "sed -i 's/if \\[\\[ -n \"\$SPEED\" ]]; then/if [[ \"\$SPEED\" -gt 0 ]]; then/' /usr/lib/munin/plugins/if_",
+ onlyif => "grep -qF 'if [[ -n \"\$SPEED\" ]]; then' /usr/lib/munin/plugins/if_",
+ require => Package['munin-node'];
+ }
}