question

SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 asked SaiyadRahim-8697 answered

SCOM to monitor "Used Memory" in MB or %

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?

msc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered LeonLaude edited

Hi @SaiyadRahim-8697,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 answered LeonLaude edited

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm afraid it will not satisfy your needs.

Out-of-box the Windows Server operating system management pack workflows have 2-State monitors only, i.e. Healthy and Warning/Critical.

You can create 3-State Double Threshold monitor (Windows Performance Counter) to get both Warning & Critical alerts, but since your requirement is to alert only if there are defined consecutive threshold breach then you would have to write your own custom workflow like mentioned in below article:
SCOM 2106 - Creating 3-State-Monitor using consecutively check?

If you have any feedback about SCOM, you can provide it over here:
https://systemcenterom.uservoice.com/forums/293064-general-operations-manager-feedback

0 Votes 0 ·
StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered StoyanChalakov edited

Hey @SaiyadRahim-8697,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 answered LeonLaude edited

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If you mean by creating either a double threshold monitor or two separate monitors for these thresholds, then yes it should work.

0 Votes 0 ·
SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 answered LeonLaude commented

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?


image.png (23.1 KiB)
image.png (6.8 KiB)
image.png (18.6 KiB)
image.png (30.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yes this will work just fine :)

0 Votes 0 ·
SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 answered

Awesome, thanks Leon.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

StoyanChalakov avatar image
0 Votes"
StoyanChalakov answered LeonLaude commented

Hi guys,

I don't see a value in the "Instance" field. Are you sure it should be like that? (I cannot test right now).
@SaiyadRahim-8697, please check this and make sure you click on the "Instance" first and then select the counters.

Regards,
Stoyan

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Precisely as Stoyan said, the Instance needs to be targeted to something, for example "Windows Computer" or "Windows Server".

0 Votes 0 ·
SaiyadRahim-8697 avatar image
0 Votes"
SaiyadRahim-8697 answered

Hi Stoyan,

This is what i have done:

35085-memory2.png



memory2.png (42.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.