Ad Widget

Collapse

Macro lastcheck

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinny
    Senior Member
    • Jan 2008
    • 145

    #1

    Macro lastcheck

    Hi all,
    simple question : is there a macro to know the date/time of an item last check ?

    For a notification, we can use the macro ITEM.LASTVALUE.
    So I'd like to know when the last value had been collected.

    thx,
    vinny
    -------
    Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere
  • Kai-Kai
    Senior Member
    • Apr 2009
    • 142

    #2
    I know there's :
    {EVENT.DATE} and {EVENT.TIME} which can be used in notifications, giving date and time of a notification.
    There's also {TIME} which is the current time when the notification is sent.

    If you receive a notification, the event time can be equal to the last value time according to me, as the trigger change it's value because it just receives a new value... but it depends on the type of trigger you define...

    Do you think it can help you ?

    But I also think something like {ITEM.LASTCHECK} can be usefull...

    Comment

    • vinny
      Senior Member
      • Jan 2008
      • 145

      #3
      Yup I'd use these macros for most of triggers
      But when using triggers with function nodata(xx), I want to know when an item is not collected since a lot of time
      so in this case, the last check is important to get the last time an item was collected

      vinny
      -------
      Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

      Comment

      • Kai-Kai
        Senior Member
        • Apr 2009
        • 142

        #4
        Yes, such a macro could be useful.

        But when using triggers with function nodata(xx), I want to know when an item is not collected since a lot of time
        so in this case, the last check is important to get the last time an item was collected
        Currently, I use nodata(duration to test) with {EVENT.TIME} in the email. To know since when the datas are no more transmitted, I use : "EVENT.TIME - duration to test = time of the end of transmission +/- check frequency".
        It gives a good idea of the time datas stop coming.

        Comment

        Working...