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)]