Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

nagios: Stop assuming /api is where zulip client is.

Alex Vandiver1b3560af94a8
diff --git a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time
index 67347bfa456..bce83254eac 100755
--- a/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time
+++ b/puppet/zulip/files/nagios_plugins/zulip_app_frontend/check_send_receive_time
@@ -24,6 +24,7 @@ setup_path()
from typing import Any, Dict, List, Optional
import django
+import zulip
usage = """Usage: send-receive.py [options] [config]
@@ -67,9 +68,6 @@ sendreceive.warning 3
sendreceive.critical 5""")
sys.exit(0)
-sys.path.append('/home/zulip/deployments/current/api')
-import zulip
-
sys.path.append('/home/zulip/deployments/current')
os.environ['DJANGO_SETTINGS_MODULE'] = "zproject.settings"