Ad Widget

Collapse

Calculated items are refreshed without net connection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ivanni
    Junior Member
    • Mar 2015
    • 15

    #1

    Calculated items are refreshed without net connection

    Hello,

    I am using Zabbix 2.4.4.

    I am using three (3) items for memory usage thanks to the default keys in Zabbix for the OS Linux Template:
    # Total used memory vm.memory.size[used], e.g., 15 GB (of 16 GB)
    # Buffers memory vm.memory.size[buffers], e.g., 4 GB
    # Cached memory vm.memory.size[cached], e.g., 1 GB

    Then I use calculated item in order to calculate the actual used memory (with my key):
    # Actual used memory vm.memory.size.actual, e.g., 10 GB

    This is my formula:
    Code:
    last("vm.memory.size[used]",0,60) - (last("vm.memory.size[buffers]",0,60) + last("vm.memory.size[cached]",0,60))
    It works fine. But the problem:
    On one of my host the internet connection has stopped and all items stopped to refresh their values and now appear blank ("-" in Latest data). The problem is that the calculated item "Actual used memory" continues to refresh every minute with the old data from used, buffers and cache when the net went down, i.e., the graph shows freezed value all of the time.

    I want this item to become blank like the other items when the agent is not reachable. I though the value 60 in the function last() do exactly this:
    time_shift (optional) - evaluation point is moved the number of seconds back in time (from Zabbix docs). But no - the item refreshes with old data... How to resolve this?

    Thank you!
Working...