From 50a4b194af574979661a48e4481259a11f2e714f Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 8 Oct 2013 08:24:40 -0400 Subject: [PATCH] check_user_zephyr_mirror_liveness: Include older zephyr mirror API version. (imported from commit e96f25e35709ee3ee85cc0c4522f98148cb31926) --- .../files/nagios_plugins/check_user_zephyr_mirror_liveness | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/puppet/modules/zulip/files/nagios_plugins/check_user_zephyr_mirror_liveness b/servers/puppet/modules/zulip/files/nagios_plugins/check_user_zephyr_mirror_liveness index eff57665ad..c335a097c9 100755 --- a/servers/puppet/modules/zulip/files/nagios_plugins/check_user_zephyr_mirror_liveness +++ b/servers/puppet/modules/zulip/files/nagios_plugins/check_user_zephyr_mirror_liveness @@ -38,7 +38,7 @@ def report(state, short_msg, too_old=None): now = datetime.datetime.utcnow() -all_users = UserActivity.objects.filter(query="get_events_backend", +all_users = UserActivity.objects.filter(query__in=["get_events_backend", "/api/v1/events"], client__name="zephyr_mirror") new_inactive_users = [user for user in all_users if user.last_visit.replace(tzinfo=None) < \ now - datetime.timedelta(minutes=10)]