mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-22 10:23:50 +01:00
Better failure message for exact keys
This commit is contained in:
parent
357c2240ba
commit
9dd6323b85
@ -161,7 +161,7 @@ class JsonRuleProcessor:
|
|||||||
k, v = kv.split(',')
|
k, v = kv.split(',')
|
||||||
key, alias = _getKeyAlias(k)
|
key, alias = _getKeyAlias(k)
|
||||||
if (self.helper.equals(key, v) == False):
|
if (self.helper.equals(key, v) == False):
|
||||||
failure += " Value for key %s did not match %s." % (alias, v)
|
failure += " Key %s mismatch. %s != %s" % (alias, v, self.helper.get(key))
|
||||||
return failure
|
return failure
|
||||||
|
|
||||||
def checkThreshold(self, key, alias, r):
|
def checkThreshold(self, key, alias, r):
|
||||||
|
Loading…
Reference in New Issue
Block a user