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:
Tim Abbott 2021-01-27 12:06:03 -08:00
parent baae227efb
commit fd8504e06b
1 changed files with 1 additions and 6 deletions

View File

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