Friday, July 1, 2011

Checking RabbitMQ queue size/age with Nagios

2 comments:

  1. 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

    ReplyDelete
  2. Likely a python version issue. I'm on 2.7.

    ReplyDelete