Ad Widget

Collapse

High memory utilization trigger from the Linux Template - don't understand it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Baymon
    Junior Member
    • Jan 2021
    • 12

    #1

    High memory utilization trigger from the Linux Template - don't understand it

    Hi,

    i have this trigger from a linxu tempalte:

    Name: High memory utilization ( >{$MEMORY.UTIL.MAX}% for 5m)

    Expression: min(/server/vm.memory.size[pavailable],5m)>{$MEMORY.UTIL.MAX}

    $MEMORY.UTIL.MAX = 90
    The trigger should warn for low memory availability.

    From my understanding this is wrong.



    pavailable - 'available' memory as percentage of 'total' (calculated as available/total*100)
    pused - 'used' memory as percentage of 'total' (calculated as used/total*100)

    If i have constantly 95% available it will warn.
    If i have constantly 5% available it will not warn.

    Shouldn't it be:

    Expression: (100 - min(/server/vm.memory.size[pavailable],5m)) > {$MEMORY.UTIL.MAX}
    or
    Expression: min(/server/vm.memory.size[pused],5m)>{$MEMORY.UTIL.MAX}
    Strange thing is, on some hosts the expression from the template seems to work, on another host not. I'm confused. Thanks for you help
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, you are right, the trigger is not correct. You can download the latest templates from https://git.zabbix.com/projects/ZBX/...e/templates/os if you like to compare them.

    Originally posted by Baymon
    Strange thing is, on some hosts the expression from the template seems to work, on another host not. I'm confused.
    In that case there is some difference between the host configurations. Feel free to show us actual configuration screenshots if you need help identifying the differences.

    Markku

    Comment

    • Baymon
      Junior Member
      • Jan 2021
      • 12

      #3
      This is the template is use, i imported it yesterday. However, i imported it once again and now it is working. Thank you very much.

      Comment

      Working...