nrpe: drop use of plurals for alert levels
Drop 'S' from CRITICALS AND WARNINGS to avoid any furture breakage. Change-Id: I3f4f2371135fcf5d49427259b8cb37fc71f78d25 Closes-Bug: 1795944
This commit is contained in:
parent
574ed6ef74
commit
43dc1d47a3
|
@ -88,11 +88,11 @@ if __name__ == "__main__":
|
|||
warnings.append(
|
||||
"%s in %s has %s messages" % (queue, vhost, message_no))
|
||||
if len(criticals) > 0:
|
||||
print "CRITICALS: %s" % ", ".join(criticals)
|
||||
print "CRITICAL: %s" % ", ".join(criticals)
|
||||
sys.exit(2)
|
||||
# XXX: No warnings if there are criticals?
|
||||
elif len(warnings) > 0:
|
||||
print "WARNINGS: %s" % ", ".join(warnings)
|
||||
print "WARNING: %s" % ", ".join(warnings)
|
||||
sys.exit(1)
|
||||
else:
|
||||
print "OK"
|
||||
|
|
Loading…
Reference in New Issue