Ad Widget

Collapse

Run a script where there are more active triggers in a host group

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c.mammoli
    Member
    Zabbix Certified Specialist
    • Feb 2012
    • 48

    #1

    Run a script where there are more active triggers in a host group

    Basically I need to open a network relay switch when there are active triggers in a host group. This will trigger an alarm for the surveillance team

    The network relay is controllable via web so is quite easy to open it with a script:

    wget http://relay/relay1=on

    The problem is that I have only 1 relay for an host group, think of this:

    trigger 1 = on -> relay open
    trigger 2 = on -> relay stays open
    trigger 2 = off -> relay closed

    But trigger 1 is still active!

    Obviously I can't use a network relay for every single trigger of the host group!

    I need to find a way to close the relay ONLY when all triggers in the host group are off

    Any idea??
Working...