sensu-plugins / sensu-plugins-rabbitmq

This plugin provides native RabbitMQ instrumentation for monitoring and metrics collection, including: service health, message, consumer, and queue health/metrics via `rabbitmq_management`, and more.
http://sensu-plugins.io
MIT License
23 stars 67 forks source link

Behavior of check-rabbitmq-consumers and check-rabbitmq-consumer-utilisation is confusing #130

Open masifpak opened 5 years ago

masifpak commented 5 years ago

I am using threshhold as default (-w 5 -c 2) but it always show CRITICAL wheile return the following.

CheckRabbitMQConsumers CRITICAL: Queues in critical state: DEV_FILE_INTEGRATIONS_REQUESTS:0-Consumers

When I changed condition from c > 0 to any like c > 100 or anything, it just returns

CRITICAL-

masifpak commented 5 years ago

Same issue is with consumer utilisation check as shhown below. My threshold is -w 0.9 -c 0.5

CheckRabbitMQConsumerUtilisation CRITICAL: Queues in critical state: DEV_FILE_INTEGRATIONS_REQUESTS:0.0%