mirror of https://github.com/zulip/zulip.git
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:
parent
73b3f7a26e
commit
be6566dc5c
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue