MogiePete / zabbix-systemd-service-monitoring

Simple Zabbix Template to discover, monitor, and alert on systemd services.
GNU General Public License v2.0
91 stars 41 forks source link

Test of "Service Discovery" discovery rule on the server front end returns no data: {"data":[]} #26

Closed yxz900 closed 3 years ago

yxz900 commented 3 years ago

When running test of "SystemD service monitoring template: Service Discovery" discovery rule for a host on the server front end, it returns {"data":[]}. But if I run

_zabbixagentd -t "systemd.service.discovery"

directly from the host, it returns:

systemd.service.discovery [t|{"data":[{"{#SERVICE}": "nftables"},{"{#SERVICE}": "postfix"},{"{#SERVICE}": "sshd"}]}]

Will you be able to advise what I'm doing wrong? Thanks!

yxz900 commented 3 years ago

Turned out it's SELinux issue. I'll close the case.