diff --git a/scripts/nagios/check-rabbitmq-consumers b/scripts/nagios/check-rabbitmq-consumers index 08636c8679..c78711f764 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_name state_file_tmp = state_file_path + "-tmp" - target_count = options.min_count + target_count = 1 if queue_name == "notify_tornado": target_count = TORNADO_PROCESSES