From fd8504e06b9d900c65dd35a0b7a1488226307e65 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 27 Jan 2021 12:06:03 -0800 Subject: [PATCH] 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. --- .../files/munin-plugins/zulip_send_receive_timing | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/puppet/zulip_ops/files/munin-plugins/zulip_send_receive_timing b/puppet/zulip_ops/files/munin-plugins/zulip_send_receive_timing index 3ab12a9a19..2339790e1e 100755 --- a/puppet/zulip_ops/files/munin-plugins/zulip_send_receive_timing +++ b/puppet/zulip_ops/files/munin-plugins/zulip_send_receive_timing @@ -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)"