From c08c15e15aa2ad7caa4662cc6be7c5676ec61dcb Mon Sep 17 00:00:00 2001 From: Shawn Sterling Date: Fri, 5 Dec 2014 21:53:24 -0800 Subject: [PATCH] making label error more clear for broken nagios plugins --- graphios.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphios.py b/graphios.py index 222d304..fcacafc 100755 --- a/graphios.py +++ b/graphios.py @@ -334,7 +334,8 @@ def process_log(file_name): nobj.UOM = re.sub("[^a-zA-Z]+", "", u) processed_objects.append(nobj) except: - log.critical("failed to parse metric: %s" % nobj.PERFDATA) + log.critical("failed to parse label: '%s' part of perf" \ + "string '%s'" % (metric, nobj.PERFDATA)) continue return processed_objects