I've been switching all my old agents over to the new agent2, and the systemd keys work pretty well. So I decided to try and change the agent side systemd monitoring script to this new system.
Debian 11
zabbix_agent2 5.4.12
Zabbix Server 6.0.3
Using the following (seems official?) template:
https://git.zabbix.com/projects/ZBX/...temd/README.md
It works when I dont add any macros to a host, it comes back with every service on the box.
The problem is when I add the macro {$SYSTEMD.NAME.SERVICE.MATCHES} and try and use ANY value, suddenly the discovery item just doesn't do anything (no errors).
This leads me to believe that the format of this text is very specific, and to my surprise the README on the template says nothing about the format!
I've tried the following formats for the Macro {$SYSTEMD.NAME.SERVICE.MATCHES}
sshd.*,rsyslog.*
sshd.service,rsyslog.service
sshd.service
sshd|rsyslog
sshd.service rsyslog.service
sshd.service|rsyslog.service
sshd* rsyslog*
None of those came back with anything (no errors).
What the heck do I put in that text field to get it to filter??
Does this template just not support multiple service whitelist???
Debian 11
zabbix_agent2 5.4.12
Zabbix Server 6.0.3
Using the following (seems official?) template:
https://git.zabbix.com/projects/ZBX/...temd/README.md
It works when I dont add any macros to a host, it comes back with every service on the box.
The problem is when I add the macro {$SYSTEMD.NAME.SERVICE.MATCHES} and try and use ANY value, suddenly the discovery item just doesn't do anything (no errors).
This leads me to believe that the format of this text is very specific, and to my surprise the README on the template says nothing about the format!
I've tried the following formats for the Macro {$SYSTEMD.NAME.SERVICE.MATCHES}
sshd.*,rsyslog.*
sshd.service,rsyslog.service
sshd.service
sshd|rsyslog
sshd.service rsyslog.service
sshd.service|rsyslog.service
sshd* rsyslog*
None of those came back with anything (no errors).
What the heck do I put in that text field to get it to filter??
Does this template just not support multiple service whitelist???
Comment