Monitoring of Varnish in Zabbix #13203

Closed
opened 2026-03-16 10:10:45 +00:00 by gwmngilfen · 6 comments
Member

Description of request

We should monitor Varnish in Zabbix. It's a popular tool, so there's probably a tempate for it, we should check and see if it's suitable and test it in Stg.

### Description of request We should monitor Varnish in Zabbix. It's a popular tool, so there's probably a tempate for it, we should check and see if it's suitable and test it in Stg.
Author
Member

Additional info - this is specifically for the kojipkgs machines

Additional info - this is specifically for the kojipkgs machines
Owner

But also the proxies have a varnish instance on them and that also would be nice to monitor.

But also the proxies have a varnish instance on them and that also would be nice to monitor.
Author
Member

OK, I have this set up on proxy01.stg:

https://zabbix.stg.fedoraproject.org/zabbix.php?name=varn&evaltype=0&tags%5B0%5D%5Btag%5D=&tags%5B0%5D%5Boperator%5D=0&tags%5B0%5D%5Bvalue%5D=&show_tags=3&tag_name_format=0&tag_priority=&state=-1&filter_name=&filter_show_counter=0&filter_custom_time=0&sort=name&sortorder=ASC&show_details=0&action=latest.view&hostids%5B%5D=10676

Some notes though:

  • I had to add Zabbix to the Varnish group (usermod -aG varnish zabbix) so it could run varnishstats
  • Also needed some SELinux policy to read the stats

The latter is not a big deal but I'm not sure if the former is better than a sudo rule (so I can use sudo varnishstats from the agent). Thoughts @kevin?

OK, I have this set up on proxy01.stg: https://zabbix.stg.fedoraproject.org/zabbix.php?name=varn&evaltype=0&tags%5B0%5D%5Btag%5D=&tags%5B0%5D%5Boperator%5D=0&tags%5B0%5D%5Bvalue%5D=&show_tags=3&tag_name_format=0&tag_priority=&state=-1&filter_name=&filter_show_counter=0&filter_custom_time=0&sort=name&sortorder=ASC&show_details=0&action=latest.view&hostids%5B%5D=10676 Some notes though: - I had to add Zabbix to the Varnish group (`usermod -aG varnish zabbix`) so it could run `varnishstats` - Also needed some SELinux policy to read the stats The latter is not a big deal but I'm not sure if the former is better than a sudo rule (so I can use sudo varnishstats from the agent). Thoughts @kevin?
Author
Member

Also, there's no real triggers set up other than "it's not working", do we want any thing to alert on request rates or similiar? might give us some heads up on scrapers?

Also, there's no real triggers set up other than "it's not working", do we want any thing to alert on request rates or similiar? might give us some heads up on scrapers?
Owner

hum, well, security wise I guess they are similar. The sudo calls will add a bunch of noise to logs tho (logging every one of the sudo calls, new systemd session, etc). So, I think perhaps we should go with group perms + selinux tweak?

I think it's fine to not have triggers yet. We can roll this out, monitor a bunch of things and then look at what might make sense to add triggers for later.

hum, well, security wise I guess they are similar. The sudo calls will add a bunch of noise to logs tho (logging every one of the sudo calls, new systemd session, etc). So, I think perhaps we should go with group perms + selinux tweak? I think it's fine to not have triggers yet. We can roll this out, monitor a bunch of things and then look at what might make sense to add triggers for later.
Author
Member

Rolled out, see the Varnish* items under the Varnish group in Zabbix.

I'll log a new ticket to add some triggers once we have data.

Rolled out, see the Varnish* items under the Varnish group in Zabbix. I'll log a new ticket to add some triggers once we have data.
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/tickets#13203
No description provided.