title: Teach Zabbix to monitor service status
body: <p>I know that Zabbix can monitor any service on Linux machine via two options:</p>
  <ul>
  <li>scan particular tcp or udp port, on which the service is bound</li>
  <li>or count the service processes with <code>proc.num[&lt;processname&gt;]</code></li>
  </ul>
  <p>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 <code>service &lt;servicename&gt; status</code> or <code>systemctl status name.service</code> tool. But there are no standard way to use it from Zabbix except <code>system.run[cmd]</code></p>
  <p>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 <code>service &lt;servicename&gt; status</code> is completely different in listed operating systems.</p>