Skip to content

Commit

Permalink
Providing an exception check if metric_base_path isn't declard in the…
Browse files Browse the repository at this point in the history
… config file
  • Loading branch information
standaloneSA committed Sep 25, 2015
1 parent 677f399 commit a470f49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphios.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ def __init__(self):
self.GRAPHITEPOSTFIX = '' # graphios suffix
self.VALID = False # if this metric is valid

if 'metric_base_path' in cfg:
self.METRICBASEPATH = cfg['metric_base_path']

def validate(self):
# because we eliminated all whitespace, there shouldn't be any quotes
# this happens more with windows nagios plugins
Expand Down

0 comments on commit a470f49

Please sign in to comment.