Ad Widget

Collapse

Item Value "Last check" in Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrgadgetnz
    Junior Member
    • Jul 2011
    • 11

    #1

    Item Value "Last check" in Trigger

    I'll prefix this post by saying that I might not be doing this the right way, and I'm open to other suggestions!

    I have two items - one which returns a numerical status, and the other which returns text (dynamic html body of an email for the trigger to send if the status > 0). Problem I have is I cannot guarantee that the text item will be updated when the trigger fires on the status item, causing the occasional alert being sent with a warning subject, and a body stating that everything is ok - somewhat confusing for the recipients!

    What I'm looking for is a condition for the trigger to ensure that the timestamp on the text item is newer/greater than the timestamp on the status item - I've tried text.now()>status.now() and text.time()>status.time() (of course these are simplified expressions for the purpose of this post). Both of these cause the alert to never be triggered - presumably because the seconds-since-epoch and current time are for the time of the trigger check, rather than the time of the last item value.

    Any ideas would be very much appreciated.

    Cheers,
    Ben.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    https://support.zabbix.com/browse/ZBXNEXT-2045 might be related
    Zabbix 3.0 Network Monitoring book

    Comment

    • mrgadgetnz
      Junior Member
      • Jul 2011
      • 11

      #3
      Thanks - that sure does sound like it would do the trick - unfortunately no sign of an ETA for the feature - is there any other way I can ensure one item's data is newer than another within the same trigger?

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        i'm not aware of any way using the built-in methods
        Zabbix 3.0 Network Monitoring book

        Comment

        • marcuoli
          Junior Member
          • Oct 2019
          • 1

          #5
          Hi, great software.

          Where does the "Last check" column data of "Latest data" page come from ? I mean, table and column.

          Comment

          Working...