AREASTACK on non-drawn graphs confuses Munin precise-prod quentin 0.0.18
authorQuentin Smith <quentin@mit.edu>
Mon, 6 Jan 2014 08:07:56 +0000 (03:07 -0500)
committerQuentin Smith <quentin@mit.edu>
Mon, 6 Jan 2014 08:07:56 +0000 (03:07 -0500)
host/usr/share/xvm-munin-host-config/plugins/xen_net

index 826ba8b..23b20ad 100755 (executable)
@@ -88,15 +88,16 @@ graph_period second"""
             for direction in ('down', 'up'):
                 key = "%s_%s" % (d, direction)
                 print "%s.label %s" % (key, domains[d]['munin_name'])
-                print "%s.draw AREASTACK" % key
                 print "%s.max 10000000000" % key
                 print "%s.min 0" % key
                 print "%s.type DERIVE" % key
                 print "%s.cdef %s,8,*" % (key, key)
                 if direction == 'down':
                     print "%s.graph no" % key
+                    print "%s.draw LINE1" % key
                 else:
                     print "%s.negative %s_down" % (key, d)
+                    print "%s.draw AREASTACK" % key
                 print "%s.info uuid %s" % (key, domains[d]['uuid'])
         sys.exit(0)