Ad Widget

Collapse

Last function for discard unchanged value in map (macro)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erasedhammer
    Member
    • Aug 2020
    • 58

    #1

    Last function for discard unchanged value in map (macro)

    Zabbix 6.4

    My Item (user parameter to get IP):
    WAN Interface IP Address
    system.ip.wan
    Text
    10m
    Preprocessing: Discard Unchanged

    Macro on map:
    {?last(/fw/system.ip.wan)}

    The wan IP item does have stored data in the lastest data tab.
    I can change the macro to {?last(/fw/system.uptime)} and it shows the uptime.

    How can I display the current value of a item (that is setup to discard unchanged) in a macro on the network map?
    Currently it just says "UNKNOWN"

    Is there some special way to get the macro in the map to display an old unchanged value? Or is it impossible, and I have to delete the processing step on the item?
  • Eduardobbastos
    Junior Member
    • Aug 2024
    • 2

    #2
    Uptime:{?last(/{HOST.HOST}/system.uptime)}
    Assim desse modo vai funcionar!

    Comment

    • markfree
      Senior Member
      • Apr 2019
      • 868

      #3
      I think your best option is to change the preprocessing step to "discard unchanged with a heartbeat".
      Set it to 1d and your map should display your firewall IP correctly.

      Comment

      Working...