Ad Widget

Collapse

Monitoring memory on Windows and Linux servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juluss
    Junior Member
    • Oct 2019
    • 1

    #1

    Monitoring memory on Windows and Linux servers

    Hi everyone,

    I'm in charge of the monitoring in this small company I work for. We have a couple of Windows and Linux servers. I created these triggers for monitoring the memory :

    {OS - Windows - Base:vm.memory.size[pavailable].count(#3,{$FREE_MEMORY},lt)}=3
    {OS - Linux - Base:vm.memory.size[pavailable].count(#3,{$FREE_MEMORY},lt)}=3
    Where $FREE_MEMORY = 10

    Problem is, lots of our servers are using more than 90% of their ram. Mostly because they are TS servers with a lot of users, or Proxmox servers, etc. Is there a better way to create a trigger for the memory, for Windows and Linux ? Of course I can change the macro for 5 in the host option or even in the template. But some of our servers runs with 4Gb of ram (VPS servers for clients for instance) and some with 64Gb of ram. So I would say that the % is not the best choice in here ? Am I right ? Should I have used mb free instead ? Maybe both ? Also I know that memory on Windows and Linux is not the same thing. But it's a beginning.

    I also have a similar problem with disk space. Some servers have TB of storages, some avec GB. Is there a way to have a trigger for that too ?

    Thanks a lot !

  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #2
    1) Probably would be better to use min instead of count/lt
    2) You can use available instead of pavalable
    3) You could create a trick formula multipling by the full size of memory (log maybe), but how many combinations you will have?
    4) You can also detect the delta instead of the value... This way you will treat different servers that need different treatments
    5) If your rules are really complex may you would need to implement a script, create an UserParameter that runs on the hosts and 'classify' the memory consunption (let's say in five ranges) and fire the trigger when it reachs the 4th or 5th range.

    My tip is ... Write your ideal trigger in a king of algorithm, what would be 'perfect' for you, only after that you try to implement it.
    Last edited by 1berto; 12-10-2019, 10:53.

    Comment

    Working...