mirror of https://github.com/zulip/zulip.git
munin: Update to use NAGIOS_BOT_HOST.
We haven't actively used this plugin in years, and so it was never converted from the 2014-era monitoring to detect the hostname. This seems worth fixing since we may want to migrate this logic to a more modern monitoring system, and it's helpful to have it correct.
This commit is contained in:
parent
baae227efb
commit
fd8504e06b
|
@ -1,7 +1,2 @@
|
|||
#!/bin/sh
|
||||
if [ "$(hostname)" = "staging.zulip.net" ]; then
|
||||
site="https://staging.zulip.com"
|
||||
else
|
||||
site="https://api.zulip.com"
|
||||
fi
|
||||
/usr/lib/nagios/plugins/zulip_app_frontend/check_send_receive_time --munin "$1" --site="$site"
|
||||
/usr/lib/nagios/plugins/zulip_app_frontend/check_send_receive_time --munin "$1" --site="https://$(/home/zulip/deployments/current/scripts/get-django-setting NAGIOS_BOT_HOST)"
|
||||
|
|
Loading…
Reference in New Issue