SCOM Management Pack VSAE Fragment Library

This is the SCOM Management Pack Fragment Library which includes VSAE Fragments you can use to make SCOM management packs quickly and easily.See instructions at:  https://blogs.technet.microsoft.com/kevinholman/2016/06/04/authoring-management-packs-the-fast-and-easy-way-using-vis

 
 
 
 
 
5 Star
(21)
5,279 times
Add to favorites
System Center
9/8/2019
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How create a "monitor type"
    1 Posts | Last post February 08, 2019
    • Hi, I hope someone can help me with this. I am creating a perzonalized monitor to evaluate the service every x seconds. I need to change the frequency to 60 seconds.
      
      https://kevinholman.com/2017/08/12/creating-a-scom-service-monitor-that-allows-overrides-for-interval-frequency-and-samples/#comment-197
      
      I based myself on Kevin's article, I created the "monitor class" and the "service monitor" for the application but I can not identify is how to insert the parameters of the humbrar? I have to create a "monitor type"? Can someone give me a hand with this?. I am not a expert person T-T - thank you everybody!
  • Fragments v3.5 - Monitor.Performance.ConsecSamples.ThenScript.TwoState.mpx Description needs update
    1 Posts | Last post December 15, 2018
    • The fragment Monitor.Performance.ConsecSamples.ThenScript.TwoState.mpx seems to be exactly what I'm looking for to support a customer request, but it looks as if the Description has not been updated since version 1.2.
      
      The Description contains guidance for CompanyID, AppName, ClassID, and UniqueID.  
      However, the v3.5 Fragment has the following Params:
      
        ##CompanyID##
        ##AppName##
        ##ClassID##
        ##UniqueID##
        ##ObjectName##
        ##InstanceName##
        ##CounterName##
        ##Threshold##
      
      Per the description, UniqueID and CounterName would be duplicates, which is not permitted.
      
      Do you have an example of how to properly edit this fragment?
      
      P.S. - I am using MP Studio to create MPs and edit fragments, but I have not yet found any Videos or Guides on working with Fragments, only VSAE and MP Author Pro.
  • Did VS 15.9 break VSAE again?
    1 Posts | Last post November 16, 2018
    • With VS 15.9 and VSAE 1.3.0.1, we now get the error below when creating a new MP project:
      
      'C:\Users\(omitted)\AppData\Local\Temp\rbuh3if5.twb\Temp\DemoApp.mpproj' cannot be opened because its project type (.mpproj) is not supported by this version of the application.
      
      To open it, please use a version that supports this type of project.
  • Spaces in regkey value name
    2 Posts | Last post October 16, 2018
    • I'm trying to monitor a dword value but the value name contains spaces. Isn't that possible with the registryvalue.content fragments?
      I guess i can use powershell also for that but it seems overkill.
    • Ugh - my fragment uses the regvaluename in the ID of the MP - which is not allowed to have spaces.  This is a scenario where you'd have to do just a little work to the XML as soon as you create it..... or change the ID to use a UniqueID.
  • Visual Studio 2017 VSAE Crashing
    2 Posts | Last post October 16, 2018
    • I have Visual Studio 2017 installed, authoring extensions installed, and when I try to add one of your MP fragments Visual Studio just crashes. I am not the only one. 
      
      
      https://developercommunity.visualstudio.com/content/problem/318019/visual-studio-crashes-using-scom-vsae.html
      
      
      What can I do to fix this? 
      
    • This is fixed in an upcoming updated for VSAE.  An updated to Visual Studio caused it.
  • Monitor.service.withalert.freqAndSamples.mpx
    2 Posts | Last post October 16, 2018
    • Looking to use this .mpx. The description implies that we would have to create this monitor for each service we want to monitor. 
      "ServiceName - must be the short name of the service as seen in the registry "
      Is that true? 
      we would like to be able to monitor all services that are set to automatic and have them restarted if they stop. 
      Any help is appreciated. 
      Thx. 
      karen
    • Monitoring ALL automatic services would probably not be a great idea.  You'd end up with a lot of services that are designed to stop.  You could use a script based monitor for something like this.... but the whole concept is a bit archaic - because it doesn't give you granularity to separate for different application health models, service owners, etc.  There are several examples on the web in different blogs for accomplishing this.
  • Class.Group.ADGroupWindowsComputers.mpx -> Discovery not working
    3 Posts | Last post August 16, 2018
    • Hi Kevin,
      
      I'm trying to use the Class.Group.ADGroupWindowsComputers.mpx fragment to populate a scom group based on a AD group. The project build without any problem but when I try to open the properties of the the group in SCOM I see the mesage 'The group can not be modified because there is no groups population rule defined for thi group'
      Is this a know issue?
      
      Regards,
      Coen
    • Pretty sure you’re seeing this popup, because the fragment does not target the instance group class itself. Therefore, as the message states, not discovery rule defined for the group. 
      Still the group will populate and you should be able to view group members. 
      
      Hope this helps
    • Interesting - there really isnt any reason I could not target the group, and that honestly would be a better target since it would load balance where all these scripts are running.
  • MP Fragment for Monitor.2StateEvent
    2 Posts | Last post July 17, 2018
    • Hey Kevin, 
      
      How do you go about creating the MP fragments? I am looking to create one for monitoring the eventlog for a first and second event. Example Looking for Application log event id 8 and generating an error when i find it, and then clearing the alert when event id 7 is found.
      
      Any help, or direction you can point me would be great!
      
      Thanks in advance.
    • I think i figured this out on my own. 
      
      1. downloaded vsae for vs2017 and installed it
      2. Created a new management pack
      3. Created a new monitor
      4. configured the monitor as much as i could, realized that i don't have configuration information, went and got that here: https://msdn.microsoft.com/en-us/library/jj130421.aspx
      5. Changed all the changible bits to ##companyid##, ##appid##, etc.
      
      The only thing im struggling with now is how do you figure out what the required references are? 
      
      Thanks again in advance.
  • Addition to Monitor.Service.WithRecovery.WithAlertRulesfragment
    1 Posts | Last post March 16, 2018
    • I've added a rule, disabled by default, to alert on event 3760 to facilitate notifications for successful restarts. Unfortunately I can't paste the code here because of the character limit but it's a basic copy/search/replace action.
  • Issue/bug in Monitor.Service.WithRecovery.WithAlertRules
    1 Posts | Last post March 14, 2018
    • Hi Kevin,
      
      In the Monitor.Service.WithRecovery.WithAlertRulesfragment, the Rules do not have the Service Name in the ID: "##CompanyID##.##AppName##.AlertOnEvent.3758.Rule"
      
      However, the Unit Monitors do: "##CompanyID##.##AppName##.##ServiceName##.Service.Monitor"
      
      This causes 2 issues:
      - the Unit Monitor ID's become invalid if the Service Name contains spaces
      - When using this fragment more than once in an MP, the Rule IDs become duplicated
      
      My solution thus far is to replace ##AppName## with a name containing the service name, and to remove the service name from the Unit Monitor IDs. Not very pretty IMO, but it works...
      
1 - 10 of 23 Items