Ad Widget

Collapse

Memory used on Linux 2.6?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jsosic
    Member
    • Apr 2008
    • 47

    #1

    Memory used on Linux 2.6?

    Hi.

    I would like to create a graph of memory usage that is similar to HTOP's progress bar, and that's pretty much stacked graph with 3 items:
    - Memory total
    - Buffers
    - Memory used

    Now, problem is I don't know how to get memory used from zabbix agent. Is it possible to get it from agent without using external command like free?
  • ahowell
    Member
    • Jan 2011
    • 66

    #2
    Originally posted by jsosic
    Hi.

    I would like to create a graph of memory usage that is similar to HTOP's progress bar, and that's pretty much stacked graph with 3 items:
    - Memory total
    - Buffers
    - Memory used

    Now, problem is I don't know how to get memory used from zabbix agent. Is it possible to get it from agent without using external command like free?
    1.8 doesn't support used on linux. You need to use a calculated item to generate it, total - free.

    2.0 does support used.

    Comment

    • tob
      Junior Member
      Zabbix Certified Specialist
      • Dec 2008
      • 25

      #3
      Personally I created these extra userparameters years ago, calculated is another way - or waiting for 2.0 indeed

      # Extra mem stats
      UserParameter=vm.memory.inuse,free -ok | grep ^Mem: | awk '{ print $ 2 - $ 4 - $ 6 - $ 7 }'
      UserParameter=vm.memory.diskcache,free -ok | grep ^Mem: | awk '{ print $ 6 + $ 7 }'

      Comment

      Working...