Ad Widget

Collapse

Help with trigger expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akbar415
    Senior Member
    • May 2015
    • 119

    #1

    Help with trigger expression

    SOmebody can help how to fix this trigger?

    Code:
    ({TRIGGER.VALUE}=0 and
    {ansprod:log["E:\aplic\sib\sib-cns\log\cns.log","ERROR",,,,1].last()}=1)
    or
    ({TRIGGER.VALUE}=1 and
    {ansprod:log["E:\aplic\sib\sib-cns\log\cns.log","ERROR",,,,1].nodata(5m)})
    What I want:
    If log has the "ERROR" string, zabbix notify me. If pass 5 minutes with no "ERROR" message in the log, the trigger is disarmed.

    What I get:
    Trigger enable and disable every 30 seconds (the item update interval)

    What I'm doing wrong?
  • glebs.ivanovskis
    Senior Member
    • Jul 2015
    • 237

    #2
    This should be enough for you: "{ansprod:log["E:\aplic\sib\sib-cns\log\cns.log","ERROR",,,,1].nodata(5m)}=0"

    Comment

    Working...