Kevin Holman's System Center Blog

Posts in this blog are provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of UseAre you interested in having a dedicated engineer that will be your Mic

OpsMgr: Logical Disk free space alerts don’t show percent and MB free values in the alert description

OpsMgr: Logical Disk free space alerts don’t show percent and MB free values in the alert description

Rate This
  • Comments 27

I recently wrote about the new Base OS Monitoring Packs that shipped, adding many new features and fixes for monitoring the OS.  You can read more about that new release HERE.   While this MP update contained many fixes and new features which are VERY beneficial in making alerts more actionable by controlling “false positives”, some of these modifications left a bit of a negative side effect.

One of the areas this new MP focused on, was changing a lot of the “average threshold” monitors to “consecutive sample” monitors.  This helps control the noise when there are short term fluctuations in a performance value, or when some counters can spike tremendously for a very short time, skewing the average.  So for the most part – changing these over to consecutive samples is a good thing.  That said, one of the changes made was to the Logical Disk free space monitors, both for Windows Server 2003 and 2008 disks.

The script used to monitor logical disk free space in previous versions of the Monitoring Pack would output two additional propertybags for free space in MB and Percent.  This was very useful, because these values could easily be added to the alert description, alert context, and health explorer.  This was very beneficial, because the consumer of the alert in a notification knew precisely how much space was left for each and every alert generated.  Here are some examples of how it looked previously:

 

image

image

image

 

Now – when the new MP shipped – this script was changed to support the new consecutive samples monitortype, and was completely re-written.  When it was rewritten, the script no longer returned these propertybags, so they were removed from the alert description, alert context, and health explorer.  The current MP (6.0.6958.0) looks like this:

image

The monitor still works perfectly as designed, and you are alerted when thresholds that you set are breached.  The only negative side effect is the loss of information in the alert description.

Several customers have indicated that they preferred to have these values back in the alert description.  The only real way to handle this scenario, until the signed and sealed MP gets updated at some point in the future, is to disable the built in monitor, and enable a new monitor with an alert description that you like.

I have written two addendum MP’s attached at the bottom of this article, which do exactly that – I created two new monitors (essentially the same monitors from the previous older version of the Base OS MP’s) and included two overrides which disable the existing monitors from the sealed MP’s.  These two new monitors are essentially exact copies of the monitors before they got updated.  They run once per hour and have all the default settings from the previous monitors.

With the addendum MP imported – health explorer looks like the following:

image

Note the new name for the addendum monitor, and the fact that the existing “Logical Disk Free Space” monitor is unloaded as it is disabled via override.

 

These addendum MP’s for Windows Server 2003 and Windows Server 2008 each simply include a script datasource, monitortype, and monitor to use instead of the items in the current sealed Base OS MP’s.  These addendum MP’s are unsealed, so you have two options:

  1. Leave them unsealed, and use them as-is.  This allows you to be able to tweak the monitor names, alert descriptions, and any other settings further.
  2. Seal the MP’s with your own key (recommended) after making any adjustments that you desire.  This will be necessary in order to create overrides for existing groups in other MP’s should you desire to use those.

 

One caveat to understand – is that any overrides you have created on the existing Base OS free space monitors will have to be re-created here on these new ones.  There is no easy workaround for that.

Let me know if you have any issues using these addendum MP’s (which are provided as a sample only) and I will try to address them.

 

Credits – to Larry Mosley at Microsoft for doing most of the initial heavy lifting writing the workaround MP.

Another approach:  Daniele Grandini has authored a different solution to this issue.  What he has done, is to add diagnostics to the existing sealed Logical Disk Free space monitors, which will add the actual disk free space in MB and % to Health explorer, so console users can have this information in real time as they use alert/health explorer to troubleshoot a free space issue.  His solution will not be able to add these values to the alert description to be sent in an email notification/pager/ticket, but for those companies that use the console and health explorer, it is a more graceful solution in that you don’t have to re-engineer all your existing overrides, and you still get the benefit of having consecutive samples.  It is worth a look:  http://nocentdocent.wordpress.com/2011/11/19/opsmgr-logical-disk-free-space-alerts-dont-show-percent-and-mb-free-values-in-the-alert-description/comment-page-1/#comment-1018

Attachment: Microsoft.Windows.Server.LogicalDisk.Addendum.zip
Comments
  • Hi Kevin,

    The above MP has reference to SCOM 2007 R2 libraries. One of my customer is still running SCOM 2007 SP1.

    Is it OK to change the reference of SCOM 2007 R2 libraries to SCOM 2007 SP1 libraries?

    WIll it work?

    Regards,

    Pramod

  • @ pramodky99 -

    Yeah - you can change them back to SP1 versions in the manifest of the XML.  There is no dependence on R2 that I am aware of.  It just defaults to those since I am running R2.

  • Hi Kevin,

    Thanks for comfirmation. Since it was urgent, So I did the changes in XML, tested it and applied. Its working fine.

    Pramod

  • Hi Kevin,

    Do you know if this is changed/updated in SCOM 2012 CU1?

    Thanks - Murad

  • @MuradAkram -

    We dont change the management packs for a different SCOM version - the BaseOS MP is the same between versions.  All MP's for the time being will be written to work with either version of SCOM.  So - the answer is no - this has not changed for SCOM 2012 CU1.

  • Hi Kevin,

    I need to create two monitors for Logical Disk which alerts when monitor is in Warning and Critical state respectively. This will address issues where SCOM doesn't sends a notification if the state changes from Warning -> Critical or Critical -> Warning. This is essential as we have integration with Incident Management.

    Also in my monitors I wanted to add the %free space and free MB available. I tried creating Unit monitors using Windows Performance Counters but when I tested your MP, it was using Microsoft.Windows.Server.2003.Addendum.LogicalDisk.FreeSpace.ModuleType.

    Do you have any MP which caters to both these requirements.

    This is like asking too much, but wanted to check if you already have.

    Thanks,

    Harry

  • @ Hare Krishna Agrawal

    That is a GREAT request.  I dont have such a thing built, but It would not be terribly difficult to do, using the existing addendum MP I published.

    We did  add similar functionality to this, in the lastest base OS mp, because we added an aggreate rollup monitor which can be used for critical rollup and critical alerting, then warning alerts from the child unit monitors.

  • Hi Kevin,

    I am having problem with low disk free space monitor override on my SCOM 2012 system, I created override for Logical Disk Free Space for monitoring windows 2008 R2, as POC, I created a group with that windows 2008 R2 server as the only member in it, also I am only using error MByte threshold and error % threshold. When this override target to Windows server 2008 Logical Disk it works OK, but if the target is the group I created, it doesn't work.

    The base OS MP verion is 6.0.6972.0

    Do you see the reason of this?

  • Oops, found the problem, member in the group didn't seem to be right, re-added the member which search from windows server 2008 class, then recreated the override, it is working now.

    Thx

  • Hi Kevin

    Is this still valid for the latest OS MP (6.0.7026.0) ?  I have been recommended to import your MP to address an issue where I want to increase the script running duration from 300 seconds on the % Logical Disk Free Space 2008 Rule for a very large volume on a file server (as this times out), however there is no UI to override this value and another social.technet member has mentioned your MP could be the answer?

    social.technet.microsoft.com/.../eb1361ef-9b6e-4756-b9a7-584c9d90dae8

    Cheers

  • Following up on my original question, firstly I was wrong about this being a rule, it is actually timing out on the monitor "Logical Disk Free Space" which is what is in your Addendum MP...but the issue remains, there is no UI to change the duration/timeout as far as I can see?

    Cheers

  • Oops, there IS an override UI called TimeoutSeconds (sorry) so that should do it!  

    I see that in the newer MP 6.0.7026.0 though, the System Drive Warning MB Threshold is 500 (not 200 as per the Addendum MP) so I will override that too as I presume this is higher in the new MP from more recent lessons learned/feedback/testing.

    Kevin, can you please confirm that this Addendum MP is safe to use with the new OS MP version 6.0.7026.0?

    Thanks and again, sorry for the incorrect info initially posted.

    Regards

Page 2 of 2 (27 items) 12
Leave a Comment
  • Please add 4 and 2 and type the answer here:
  • Post
Search Blogs