Skip to content

Commit

Permalink
making label error more clear for broken nagios plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Sterling committed Dec 6, 2014
1 parent 60cf552 commit c08c15e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphios.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c08c15e

Please sign in to comment.