Ad Widget

Collapse

Free Memory Percentage - Will this trigger do it?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bignose
    Member
    • Dec 2008
    • 58

    #1

    Free Memory Percentage - Will this trigger do it?

    I want to make a rather generic trigger that flips when my available memory is less than 80%.

    So I did this:

    ({Template_Linux:vm.memory.size[free].last(0)}/{Template_Linux:vm.memory.size[total].last(0)})*100<20

    Did I do this right?
  • Bennie
    Member
    Zabbix Certified Specialist
    • Feb 2010
    • 73

    #2
    You can use vm.memory.size[pfree]

    Gives back free memory in percentage, easier to create a trigger on that one:
    {Template_Linux:vm.memory.size[pfree].last(0)}<20
    Last edited by Bennie; 20-07-2010, 10:45. Reason: triggers added

    Comment


    • mitul.nfdil
      mitul.nfdil commented
      Editing a comment
      Can you please explain this -> {Template_Linux:vm.memory.size[pfree].last(0)}<20
      I mean what does every term means in this expression?
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #3
    Hi Bennie and Bignose,

    Your formula are both correct but chances are that free memory will always be below 20% on your Linux servers since Linux tends to use all "unused" memory as a disk cache.

    If you want to be sure that you are really running out of memory, you should either add "cached" and "buffer" memory to "free" or (this is my preferred solution) check swap usage instead of memory usage.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • huangyingja
      Junior Member
      • Apr 2015
      • 27

      #4
      Just FYI ~
      Plz check the attachment picture.
      It works now !
      Attached Files

      Comment

      Working...