nagios: Move cron_file_helper from bots/ to scripts/lib.

This ensures the tool is available in Zulip production deployments.
This commit is contained in:
Tim Abbott 2016-05-07 18:38:44 -07:00
parent 73b3f7a26e
commit be6566dc5c
3 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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)