I know that Zabbix can monitor any service on Linux machine via two options:
- scan particular tcp or udp port, on which the service is bound
- or count the service processes with
proc.num[<processname>]
It is totally counter-intuitive, because I can spawn processes with the same executable name and they will deceive Zabbix. I'd prefer to use standard service <servicename> status
or systemctl status name.service
tool. But there are no standard way to use it from Zabbix except system.run[cmd]
Could you help me to write templates for monitoring a particular service state. We want to use different OSes like Centos 7 and Ubuntu 14.04 and 16.04 distributions. It is pity but service <servicename> status
is completely different in listed operating systems.
systemd
(like Ubuntu 14)? – Virgule