Skip to content

Instantly share code, notes, and snippets.

@avian2
Last active August 29, 2015 14:00
Show Gist options
  • Save avian2/666a01cc92a8f5512001 to your computer and use it in GitHub Desktop.
Save avian2/666a01cc92a8f5512001 to your computer and use it in GitHub Desktop.
Nicer limit display for Munin graphs
Index: munin-2.0.6/master/lib/Munin/Master/GraphOld.pm
===================================================================
--- munin-2.0.6.orig/master/lib/Munin/Master/GraphOld.pm 2014-05-04 00:39:12.000000000 +0200
+++ munin-2.0.6/master/lib/Munin/Master/GraphOld.pm 2014-05-04 00:42:49.620605473 +0200
@@ -1161,7 +1161,8 @@
. "#" . (
$single_value
? "ff0000"
- : $COLOUR[($field_count - 1) % @COLOUR]));
+ : $COLOUR[($field_count - 1) % @COLOUR])
+ . "::dashes=1");
}
if (defined($warn_max) and $warn_max ne '') {
unshift(
@@ -1171,7 +1172,8 @@
. "#" . (
$single_value
? "ff0000"
- : $COLOUR[($field_count - 1) % @COLOUR]));
+ : $COLOUR[($field_count - 1) % @COLOUR])
+ . "::dashes=1");
}
}
@@ -1239,7 +1241,8 @@
. "#" . (
$single_value
? "ff0000"
- : $COLOUR[($field_count - 1) % @COLOUR]));
+ : $COLOUR[($field_count - 1) % @COLOUR])
+ . "::dashes=1");
}
if (defined($warn_max) and $warn_max ne '') {
unshift(
@@ -1249,7 +1252,8 @@
. "#" . (
$single_value
? "ff0000"
- : $COLOUR[($field_count - 1) % @COLOUR]));
+ : $COLOUR[($field_count - 1) % @COLOUR])
+ . "::dashes=1");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment