DX NetOps

  • 1.  Watch - Hybrid memory alarm

    Posted Dec 06, 2018 10:13 AM

    We need to create a watch to calculate an accurate high memory alarm on Linux servers.

     

    We need the following, unless there is a better way to monitor this please advise:

     

    The alarm will be triggered when used Physical memory is more than 95% used and when the cache is a low actual value, such as 1GB or less. When these 2 are true then create a Critical.

     

    We have never used a watch, We know We will have to mapped the necessary attributes to this equation and also make sure, we do not use this watch for all devices (we have a total of more than 7,000 devices , routers, switches, servers, etc). We were thinking of using a global collection to apply this watch to since it is only to 8 devices.

     

    We have mapped the ucdavis attributes. Need help with the expressions syntax to get average.

     

    Used memory / Total memory * 100 > 95%  and memory cache < 1000 then when this is true create critical alarm

     

    We are using our Dev environment to test this on.

     

    Any help would greatly be appreciated.

     

    Thank you



  • 2.  Re: Watch - Hybrid memory alarm
    Best Answer

    Posted Jan 02, 2019 01:01 PM

    Raul,

     

    Not knowing the exact attributes, the the following sounds logical:

     

    (((Used memory / Total memory) * 100 > 95)  & (memory cache < 1000))

     

    What you would have to do is make the watch data type boolean. Then, in the threshold for this watch, check to see if the above expression is "TRUE" and if "TRUE" assert an alarm.

     

    I recommend two watches. One referred to as the "True_Watch" and the other is your watch with expression using the "True_Watch" for the threshold. For example:

     

    Name: True_Watch
    Data Type: Boolean
    Expression: 1
    Instance: None
    Default Activation: Active
    Evaluate: On Demand
    Logged Value: False
    Inheritable: False
    Threshold: None

     

    Name: AlarmWatch
    Data Type: Boolean
    Expression: (((Used memory / Total memory) * 100 > 95)  & (memory cache < 1000))
    Instance: None
    Default Activation: Active
    Evaluate: By Polling
    Poll Interval: 0+00:01:00

    Logged Value: False
    Inheritable: False
    Threshold:
    Threshold violated if value == True_Watch.
    Threshold reset if value != True_Watch.

     

    Joe



  • 3.  Re: Watch - Hybrid memory alarm

    Posted Jan 07, 2019 11:21 AM

    Thank you Joe, I took your advice and it works.

     

    Hope you have a great day and thank you again,

     

    Raul