mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Fix y-axis pinned to zero - Munin bug workaround
This commit is contained in:
parent
b7a1903d2e
commit
c495be36aa
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue