Skip to content

Commit

Permalink
fixed warn/crit info marks
Browse files Browse the repository at this point in the history
  • Loading branch information
zito committed Jul 31, 2012
1 parent cd47a5a commit a75dccb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions checks/ups.include
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ def check_ups_levels(key, value, params):
level[k] = v
if level['lc'] is not None and value <= level['lc']:
status = 2
txt += ' (!! <= ' + str(level['lc']) + ')'
txt += ' (!!) <= ' + str(level['lc'])
elif level['lw'] is not None and value <= level['lw']:
status = 1
txt += ' (! <= ' + str(level['lw']) + ')'
txt += ' (!) <= ' + str(level['lw'])
elif level['hc'] is not None and value >= level['hc']:
status = 2
txt += ' (!! >= ' + str(level['hc']) + ')'
txt += ' (!!) >= ' + str(level['hc'])
elif level['hw'] is not None and value >= level['hw']:
status = 1
txt += ' (! >= ' + str(level['hw']) + ')'
txt += ' (!) >= ' + str(level['hw'])
def xstr(x):
if x is None:
return ''
Expand Down

0 comments on commit a75dccb

Please sign in to comment.