Ad Widget

Collapse

Zabbix Service monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbtshare
    Junior Member
    • Aug 2016
    • 13

    #1

    Zabbix Service monitoring

    Hello all,

    I have am using zabbix 3.0 beta, I have a custom script which runs as a service, but there is no daemon for it, so I guess that is why proc.num doesn't work. I have come up with a way to still return a 1 or 0 is service is running or not

    if service soc-procs status| grep running >> /dev/null; then echo 1; else echo 0; fi

    but how do I get this in a trigger?

    zabbix_agentd -t proc.num["soc-procs"] returns 0
Working...