Debian 13, zabbix-agent 2 v 7.4.xx
I want to monitor a list of specific systemd services (whether they are currently running or not).
For now I tried to use Systemd by Zabbix Agent 2 template. It's working, but with default settings this template monitoring all enabled systemd-services. For me, this is not an ideal option - too many unnecessary metrics and alerts.
Can I limit monitoring services with this template? For example, nginx|postgresql|redis|e.t.c
P.S. I tried limit services by change macros {$SYSTEMD.NAME.SERVICE.MATCHES} to something like
but without succes - services was not discowered at all. No new metrics, no alerts on non running services.
I am definitely doing something wrong, but what?
I want to monitor a list of specific systemd services (whether they are currently running or not).
For now I tried to use Systemd by Zabbix Agent 2 template. It's working, but with default settings this template monitoring all enabled systemd-services. For me, this is not an ideal option - too many unnecessary metrics and alerts.
Can I limit monitoring services with this template? For example, nginx|postgresql|redis|e.t.c
P.S. I tried limit services by change macros {$SYSTEMD.NAME.SERVICE.MATCHES} to something like
Code:
^(nginx|postgresql|redis)$
I am definitely doing something wrong, but what?
Comment