diff --git a/roles/httpd/proxy/templates/zabbix-dropin.conf.j2 b/roles/httpd/proxy/templates/zabbix-dropin.conf.j2 index 6858499182..cf1a57263a 100644 --- a/roles/httpd/proxy/templates/zabbix-dropin.conf.j2 +++ b/roles/httpd/proxy/templates/zabbix-dropin.conf.j2 @@ -9,3 +9,9 @@ UserParameter=httpd.curl.moby,/usr/bin/curl -s --resolve registry{{env_suffix}}. # this is ugly, but we need to change ".stg" into "stg." {% set prefix = (env_suffix | regex_replace('^\.(.+)$', '\\1.')) %} UserParameter=httpd.curl.rmo,/usr/bin/curl -s --resolve {{ prefix }}release-monitoring.org:443:127.0.0.1 https://{{ prefix }}release-monitoring.org/ | /usr/bin/grep "Watch for releases of your favorite projects" + +# registry monitoring is only done in prod +{% if env != 'staging' %} +UserParameter=httpd.curl.flatpaks,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/_catalog?last=fedora' | /usr/bin/grep "fedora" +UserParameter=httpd.curl.images,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/fedora/tags/list' | /usr/bin/grep "rawhide" +{% endif %}