From fe9aaf4f40586c374d0642c931ce872cfa722d24 Mon Sep 17 00:00:00 2001 From: Torsten Rehn Date: Fri, 27 Dec 2013 15:02:28 +0100 Subject: [PATCH] ignore broken plugins that don't return a value at all --- m2g-poller.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/m2g-poller.py b/m2g-poller.py index a566d25..57f1e38 100755 --- a/m2g-poller.py +++ b/m2g-poller.py @@ -106,7 +106,12 @@ class Munin(): response[multigraph] = {} continue - key_name, key_value = current_line.split(" ", 1) + try: + key_name, key_value = current_line.split(" ", 1) + except ValueError: + # ignore broken plugins that don't return a value at all + continue + if "." in key_name: # Some keys have periods in them. # If so, make their own nested dictionary.