Ad Widget

Collapse

Wrong values in E-Mail notification

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ulistaerk
    Junior Member
    • Dec 2009
    • 9

    #1

    Wrong values in E-Mail notification

    I have an item, checked every 300s and a trigger, checking if the result is not 200:
    Code:
    {host:x.sensors[sensor_blacklist].last(0)}#200
    When fired an e-mail with the following template will be sent:
    Code:
    Subject: [{EVENT.ID}] {TRIGGER.NAME}: {STATUS}
    
    Current: {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Last: {{HOSTNAME}:{TRIGGER.KEY}.prev(0)}
    According to the latest values, the trigger gets executed correctly, because the value changed to 404, but the values reported in the mail are wrong:
    Code:
    Subject: [#211202] host: Sensor blacklist: PROBLEM
    
    Current: 200
    Last: 404
    This problem exists for years - but I want to try to fix it, because its annoying. Any ideas?
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    What version are you running?

    Comment

    • ulistaerk
      Junior Member
      • Dec 2009
      • 9

      #3
      Currently: 1.6.6

      I think I saw this before in 1.4, too

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        I haven't seen this in 1.8.2 but perhaps you should hear it from more than 1 person.

        Comment

        • untergeek
          Senior Member
          Zabbix Certified Specialist
          • Jun 2009
          • 512

          #5
          Does {ITEM.LASTVALUE} work?

          Our emails look a bit like this:

          DateTimeNOW: {DATE} {TIME}
          EventDateTIME: {EVENT.DATE} {EVENT.TIME}
          EventAge: {EVENT.AGE}
          ItemName: {ITEM.NAME}
          ItemLastValue: {ITEM.LASTVALUE}
          Comment: {TRIGGER.COMMENT}

          Comment

          Working...