Ad Widget

Collapse

Help with triggers using proc.mem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cb0n3y
    Member
    • Feb 2021
    • 32

    #1

    Help with triggers using proc.mem.

    Hello everyone,

    i'm using proc.mem to get how many Memory in percent the vault process is using. What kind of function should i use for this? avg(), last(), count()?
    Code:
    proc.mem[vault,vault,,,pmem]
    And i get something like in the picture.
    I appreciate any suggestions. Thank you in advance
    Attached Files
  • cb0n3y
    Member
    • Feb 2021
    • 32

    #2
    Hello cyber,

    sorry and thank you for your quick response. Sure, the item receives values. I want to make three triggers that fires when memory utilization is over 60%,70%, and 80% respectively. I had tried with avg() function
    and it works as far as i can see but i am not sure about that. Here my trigger expression:
    Code:
    {HOST:proc.mem[vault,vault,,,pmem].avg(5m)}>60
    Can i use the trigger like that or should i consider other functions?

    Comment

    • eithor
      Member
      • May 2020
      • 50

      #3
      Edit: missed the "pmem" option, removed my comment.
      Last edited by eithor; 14-04-2021, 11:58.

      Comment

      • eithor
        Member
        • May 2020
        • 50

        #4
        To avoid flapping trigger you could either use "avg" as you have (instead of last), and even better: "avg" with a separate "recovery expression" that uses a different value (and remember to reverse the logic). E.g. "...avg(5m)} > 60" as trigger and "...avg(5m)} < 50" as recovery expression.

        Comment

        • cb0n3y
          Member
          • Feb 2021
          • 32

          #5
          Hallo eithor,

          thank you for your answer. I'm still using tha avg() function. That with the recovery expression is a very good point. I still have a question. The value that i receive from proc.mem[vault,vault,,,,pmem] is the % Value of the total RAM?

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            You seem to have an item and it also receives values... What kind of function should you use for what? You absolutely forgot to tell us, what you are trying to achieve......

            Comment

            Working...