Ad Widget

Collapse

Linux used memory calculated item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • foxbymariuss
    Junior Member
    • Jan 2013
    • 3

    #1

    Linux used memory calculated item

    Hi everybody,

    A Zabbix newbie here. In 2.0.4 tried to create a calculated item for my Linux OS template:
    key: vm.memory.size[usedc]
    formula: vm.memory.size[used]-vm.memory.size[buffers]
    Type of information: numeric
    Data type: decimal
    Units: B
    Update interval (in sec): 60
    Application: memory.

    Going to monitoring>>latest data, I see that the components of my calculated item are displayed in column "Last Value", but my calculated parameter, "Used memory calculated", is displayed with 0B, and the graph shows "no data"

    If you have any idea on how to fix this, I would be very grateful.

    Thank you!
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Sounds like maybe you are not looking at the current time on the graph. Make sure the slider bar for time navigation is all the way to the right.

    If Latest Data is giving a value (0 is a value), then that should also be showing on the graph. That slider bar trips me up all the time. Can't say that I much care for the way it behaves in the 2.x release.

    Comment

    • foxbymariuss
      Junior Member
      • Jan 2013
      • 3

      #3
      Thanks, tchjts1. But it's not that, I minded the slider on top.

      Comment

      • foxbymariuss
        Junior Member
        • Jan 2013
        • 3

        #4
        Solved!

        The issue was in the formula calculation. Replaced it with:
        last("vm.memory.size[used]")-last("vm.memory.size[buffers]")
        and now it works.

        Comment

        Working...