summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-17 22:15:37 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-17 22:15:37 +0100
commit8203fa927a933622c18cf0784f87763733bf4389 (patch)
tree9f916c62af836ec0b190f0d94b1a02a92edb3cc2 /doc
parent68dd628fde6e52d702dc71e8334f91d7822b9358 (diff)
downloaddabmux-8203fa927a933622c18cf0784f87763733bf4389.tar.gz
dabmux-8203fa927a933622c18cf0784f87763733bf4389.tar.bz2
dabmux-8203fa927a933622c18cf0784f87763733bf4389.zip
fix warnings for munin script
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/stats_dabmux_multi.py31
1 files changed, 5 insertions, 26 deletions
diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py
index 7dbf925..9483ca3 100755
--- a/doc/stats_dabmux_multi.py
+++ b/doc/stats_dabmux_multi.py
@@ -9,26 +9,6 @@ import socket
config_template_top = """
multigraph zmq_inbuf
-graph_title {title}
-graph_order high low underruns overruns
-graph_args --base 1000
-graph_vlabel max/min buffer size bytes during last ${{graph_period}}
-graph_category dabmux
-graph_info This graph shows the high and low buffer sizes for ZMQ inputs
-
-high.info Max buffer size
-high.label Bytes
-high.min 0
-low.info Min buffer size
-low.label Bytes
-low.min 0
-underruns.info Number of underruns
-underruns.label Occurrencies
-underruns.min 0
-overruns.info Number of overruns
-overruns.label Occurrencies
-overruns.min 0
-
"""
config_template_individual = """
@@ -52,17 +32,16 @@ low.warning 1:
underruns.info Number of underruns
underruns.label Occurrencies
underruns.min 0
-underruns.warning 1:
+underruns.warning 0:0
overruns.info Number of overruns
overruns.label Occurrencies
overruns.min 0
-overruns.warning 1:
+overruns.warning 0:0
"""
-#TODO enable
-#if not os.environ.get("MUNIN_CAP_MULTIGRAPH"):
-# print("This needs munin version 1.4 at least")
-# sys.exit(1)
+if not os.environ.get("MUNIN_CAP_MULTIGRAPH"):
+ print("This needs munin version 1.4 at least")
+ sys.exit(1)
def connect():
"""Create a connection to the dabmux stats server