Ad Widget

Collapse

Zabbix 2.0.6 Triggers from extended script dont work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pad19
    Junior Member
    • Jul 2013
    • 22

    #1

    Zabbix 2.0.6 Triggers from extended script dont work

    I have been doing many triggers from 2 days, and nothing working propetely.
    I am checking if host is up or down by icmp extended script.
    Latest data are ok, graphs are ok, for example when host is down I am getting in latest data loss 100% and when is up I am getting 0%, and I see it on graph.

    So I created triggers, I want to show problem when host is down and change trigger status to ok when host back to alive and its up.

    Triggers shows problem, but dont want to back to ok status.

    For example:
    Code:
    ({Template Test Smokeping:SmokLoos.count(#6,100)}>4 & {TRIGGER.VALUE}=0) | ({Template Test Smokeping:SmokLoos.count(#4,0)}>2 & {TRIGGER.VALUE}=1)
    It doesnt work, It only change status to problem when host is down, but dont change to ok when is up. I have been trying with .last .sum .abschange and the same problem...

    I think it is Zabbix bug.

    Last edited by pad19; 17-07-2013, 12:28.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I believe your trigger expression has incorrect condition. Fixed one:

    Code:
    ({Template Test Smokeping:SmokLoos.count(#6,100)}>4 & {TRIGGER.VALUE}=0)
    |
    ({Template Test Smokeping:SmokLoos.count(#4,0)}<3 & {TRIGGER.VALUE}=1)
    Note that this part {Template Test Smokeping:SmokLoos.count(#4,0)}<3 defines a condition to STAY in problem state.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • pad19
      Junior Member
      • Jul 2013
      • 22

      #3
      Originally posted by Alexei
      I believe your trigger expression has incorrect condition. Fixed one:

      Code:
      ({Template Test Smokeping:SmokLoos.count(#6,100)}>4 & {TRIGGER.VALUE}=0)
      |
      ({Template Test Smokeping:SmokLoos.count(#4,0)}<3 & {TRIGGER.VALUE}=1)
      Note that this part {Template Test Smokeping:SmokLoos.count(#4,0)}<3 defines a condition to STAY in problem state.
      Yes, you are right I didnt understand it. Everything works OK!
      Thanks for reply

      Comment

      Working...