Ad Widget

Collapse

Trigger on/off.. Is it possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hertell
    Member
    • Aug 2010
    • 31

    #1

    Trigger on/off.. Is it possible?

    Hi all,

    I'm having a script that performs a backup. I have it sending to a key with zabbix_sender the following strings:

    1) Backup started
    2) Backup finished successfully.

    If the backup fails for some reason, the script sends to zabbix a message with:

    3) Backup finished with a Failure!

    I have managed zabbix to fire the trigger when the string contains the word "Failure". What i have not managed yet, is to have zabbix to turn off the trigger when the backup returns the word "success". Now it seems to me that it turns "off" the trigger when the backup starts...

    I'm sure this can be done, but i can't figure out yet how this should be done..

    Any help is apreciated! :-)
  • hertell
    Member
    • Aug 2010
    • 31

    #2
    I reply to myself (and I hope that my solution is correct!)

    I found in the docs the following help:

    ({TRIGGER.VALUE}=0&{host:key.status.str("Fail")}=1 )
    |
    ({TRIGGER.VALUE}=1&{host:key.status.str("Ok")}=0)

    Currently it seems to work, but it might be completely wrong..

    Please correct me if i'm wrong! :-)

    Comment

    • hertell
      Member
      • Aug 2010
      • 31

      #3
      I reply to myself (and I hope that my solution is correct!)

      I found in the docs the following help:

      ({TRIGGER.VALUE}=0&{host:key.status.str("Fail")}=1 )
      |
      ({TRIGGER.VALUE}=1&{host:key.status.str("success") }=0)

      Currently it seems to work, but it might be completely wrong..

      Please correct me if i missed something! :-)

      Comment

      Working...