Cast to an int, otherwise error condition is never met.
This commit is contained in:
parent
b8ef359849
commit
e87b4635b8
2 changed files with 5 additions and 5 deletions
|
@ -9,8 +9,8 @@ import zmq
|
|||
try:
|
||||
service = sys.argv[1]
|
||||
check_consumer = sys.argv[2]
|
||||
backlog_warning = sys.argv[3]
|
||||
backlog_critical = sys.argv[4]
|
||||
backlog_warning = int(sys.argv[3])
|
||||
backlog_critical = int(sys.argv[4])
|
||||
fname = '/var/run/fedmsg/monitoring-%s.socket' % service
|
||||
if not os.path.exists(fname):
|
||||
print "UNKNOWN - %s does not exist" % fname
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue