zulip/scripts/nagios
Tim Abbott 88a123d5e0 Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks.
The previous model for these Nagios checks was kinda crazy -- every
minute, we'd run a full `rabbitmctl list_consumers` for each of the
dozen+ consumers that we have, and then do the exact same parsing
logic for each to determine whether the target queue has a running
consumer to write out a state file.

Because `rabbitmctl list_consumers` takes a small amount of resources,
on systems where CPU is very limited (e.g. t2 style AWS instances),
this minor CPU wastage could be problematic.

Now we just do that `rabbitmqctl list_consumers` once per minute, and
output all the state files from a single command.

Further TODO items on this front include removing the hardcoded list
of queues.
2016-08-12 14:09:36 -07:00
..
check-rabbitmq-consumers Fix excessive CPU usage by rabbitmq-numconsumers Nagios checks. 2016-08-12 14:09:36 -07:00
check-rabbitmq-queue scripts/: Make subprocess calls unicode-aware. 2016-07-26 12:06:41 -07:00
cron_file_helper.py Annotate cron_file_helper. 2016-08-04 15:57:03 -07:00