SCOM to monitor "Used Memory" in MB or %

Saiyad Rahim 351 Reputation points
2020-10-21T08:38:53.283+00:00

Hi all,

I maybe a bit late to the party as there have been a lot of questions on how to monitor % memory used on a server. I know by default scom does Available Memory in MB.

Is it true that SCOM can not do Memory Used in MB or GB?

Not talking about Committed Memory that is using Page File but actual Memory being used and if it goes above a threshold, it should alert.

Also, what Performance counter do I use if I want to monitor if a server is using more than 80% memory?
While creating a Unit monitor, i see "% Committed bytes" but again it is for Page files and not Physical Memory

I just want to monitor % physical memory being used an alert at 75% Warning and 80% Critical.

Anybody got any ideas?

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,395 questions
0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Leon Laude 85,566 Reputation points
    2020-10-21T08:51:11.647+00:00

    Hi @Saiyad Rahim ,

    Is it true that SCOM can not do Memory Used in MB or GB?

    SCOM monitors by default the memory in available Megabytes (MB).

    Also, what Performance counter do I use if I want to monitor if a server is using more than 80% memory?

    You would need to use the Memory\Available MBytes performance counter, you can use the management pack described in Jonathan's blog post over here to monitor percentage of memory: http://blog.scomskills.com/monitor-percent-memory-used-on-windows/

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

  2. Saiyad Rahim 351 Reputation points
    2020-10-21T09:27:33.997+00:00

    wow...a monitoring tool that does not Alert on % or MB/GB memory used...who is in charge if product design for scom?
    He should be kicked in the butt and told to "wake up".

    Issue with Jonathan's MP is that i need to be alerted if it breaches a Warning Threshold of 75% and alert on a Critical Threshold of 85% which his script doesn't do.

    i foound this as well:
    http://00shep.blogspot.in/2013/11/scom-unit-monitor-based-on-memory.html

    @Leon - can you have a look at this one and let me know if this is suitable for what I want to achieve.


  3. SChalakov 10,256 Reputation points MVP
    2020-10-21T09:42:57.907+00:00

    Hey @Saiyad Rahim ,

    There are lots of memory based performance counters, which are collected out of the box, collecting them all is also not a good idea because of the data warehousing and data housekeeping.
    What you can simply do is create your own monitor, based on the counter you need, in this case Available Memory. This is very simple process and you don't need complicated scripts for that. Here is a nice example with screenshot, which shows how you can create a unit monitor to gather a System Uptime counter. You need to do the same, but you need to choe the Double Thresholds (under Static Thresholds) and when you get to chose the "Object" you simple chose the memory related one (not System as in the blog).

    SCOM: Alerting when a server is up for more than X days
    scom-alerting-when-a-server-is-up-for-more-than-x-days

    Hope I was able to help.

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)
    Regards,
    Stoyan

    0 comments No comments

  4. Saiyad Rahim 351 Reputation points
    2020-10-21T19:15:18.533+00:00

    Hi guys,

    just thinking outside the box here .
    if i use Counter: Available MBytes for a server with 12GB Memory:

    For Warning Threshold of 75%:
    75% of 12 = 9GB (Used Memory)
    12 - 9 = 3GB (available memory)
    I create monitor with Low value threshold of 3000MB

    For Critical Threshold of 85%:
    85% of 12 = 10.2GB (Used Memory)
    12 - 10.2 = 1.8 GB
    Use high value threshold of 1800MB

    Will this work?
    trying this in my Lab now.


  5. Saiyad Rahim 351 Reputation points
    2020-10-21T20:06:32.367+00:00

    Hi Leon,

    I used Static Thresholds> Double Thresholds monitor. In my understanding this is one monitor with 2 thresholds, one for Warning and one for Critical:

    34107-image.png

    34143-image.png

    34135-image.png

    34047-image.png

    Is there something wrong with this?