diff --git a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_consumers b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_consumers index 7996c64e3d..6a3585f7a3 100755 --- a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_consumers +++ b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_consumers @@ -12,8 +12,8 @@ from __future__ import print_function import sys -sys.path.append('/home/zulip/deployments/current') -from bots.cron_file_helper import nagios_from_file +sys.path.append('/home/zulip/deployments/current/scripts/nagios') +from cron_file_helper import nagios_from_file if len(sys.argv) < 2: print("Please pass the name of the consumer file to check") diff --git a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_queues b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_queues index 5a16f86ff3..866016f2a2 100755 --- a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_queues +++ b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_rabbitmq_queues @@ -13,8 +13,8 @@ from __future__ import print_function import sys -sys.path.append('/home/zulip/deployments/current') -from bots.cron_file_helper import nagios_from_file +sys.path.append('/home/zulip/deployments/current/scripts/nagios') +from cron_file_helper import nagios_from_file RESULTS_FILE = "/var/lib/nagios_state/check-rabbitmq-results" ret, result = nagios_from_file(RESULTS_FILE) diff --git a/bots/cron_file_helper.py b/scripts/nagios/cron_file_helper.py similarity index 100% rename from bots/cron_file_helper.py rename to scripts/nagios/cron_file_helper.py