Facts, hacks and attacks from my life as a web application developer
I'm getting an error when trying to run the command by hand:./check_rabbitmq --host san-api01 --warning-queue-size 100 --critical-queue-size 400 --warning-seconds 600 --critical-seconds 2400 /etc/nagios/plugins File "./check_rabbitmq", line 56 exit(1 if num_messages > options.crit_queue else 2) ^SyntaxError: invalid syntax
Likely a python version issue. I'm on 2.7.
I'm getting an error when trying to run the command by hand:
ReplyDelete./check_rabbitmq --host san-api01 --warning-queue-size 100 --critical-queue-size 400 --warning-seconds 600 --critical-seconds 2400 /etc/nagios/plugins
File "./check_rabbitmq", line 56
exit(1 if num_messages > options.crit_queue else 2)
^
SyntaxError: invalid syntax
Likely a python version issue. I'm on 2.7.
ReplyDelete