2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fix y-axis pinned to zero - Munin bug workaround

This commit is contained in:
Mike Koss 2012-02-15 01:38:13 -08:00
parent b7a1903d2e
commit c495be36aa

View File

@ -65,8 +65,11 @@ def main():
print 'graph_title Bitcoin %s' % labels[0] print 'graph_title Bitcoin %s' % labels[0]
print 'graph_vlabel %s' % labels[1] print 'graph_vlabel %s' % labels[1]
print '%s.label %s' % (request_var, request_var) print '%s.label %s' % (request_var, request_var)
# Work-around for Munin bug - extra black line at origin that pins
# y-axis to zero instead of auto-range.
print 'dummy.label dummy'
if len(labels) >= 3: if len(labels) >= 3:
print "graph_args --lower-limit %d" % labels[2] print 'graph_args --lower-limit %d' % labels[2]
return return
# Munin should send connection options via environment vars # Munin should send connection options via environment vars