Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
check-rabbitmq-consumers: Remove unused --min-threshold.
Alex Vandiver4e06ee45c7ff
diff --git a/scripts/nagios/check-rabbitmq-consumers b/scripts/nagios/check-rabbitmq-consumersindex 08636c86795..c78711f764c 100755--- a/scripts/nagios/check-rabbitmq-consumers+++ b/scripts/nagios/check-rabbitmq-consumers@@ -23,12 +23,8 @@ if "USER" in os.environ and not os.environ["USER"] in ["root", "rabbitmq"]:print("This script must be run as the root or rabbitmq user")-usage = """Usage: check-rabbitmq-consumers --min-threshold=[min-threshold]"""--parser = argparse.ArgumentParser(usage=usage)-parser.add_argument("--min-threshold", dest="min_count", type=int, default=1)--options = parser.parse_args()+parser = argparse.ArgumentParser()+parser.parse_args()config_file = get_config_file()TORNADO_PROCESSES = len(get_tornado_ports(config_file))@@ -61,7 +57,7 @@ for queue_name in consumers.keys():state_file_path = "/var/lib/nagios_state/check-rabbitmq-consumers-" + queue_namestate_file_tmp = state_file_path + "-tmp"- target_count = options.min_count+ target_count = 1if queue_name == "notify_tornado":target_count = TORNADO_PROCESSES