SCOM Management Pack VSAE Fragment Library

Download here:   https://github.com/thekevinholman/FragmentLibraryThis 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/201

 
 
 
 
 
5 Star
(21)
Add to favorites
System Center
8/19/2020
E-mail Twitter del.icio.us Digg Facebook
  • 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...
      
  • Group discovery impact on OpsMgr DB
    1 Posts | Last post February 05, 2018
    • Hi Kevin,
      
      We're havinng quite severe locking issues on our OpsMgr DB, and Support has indicated that the large number of duynamic groups is a known culprit for this sort of problem. As an example: we have groups of SQL databases, combining all the versions (2008/2012/2014/2016), with a regex on the name of the hosting server as a criterium to determine DTAP status. Can you say anything about the DB impact of your SQL Query Based group approach? Would that be more efficient for the OpsMgr DB?
  • How to author MP with only Run As accounts and profiles via VSAE?
    1 Posts | Last post December 29, 2017
    • Hi Kevin,
      
      I need to create only run as profiles and accounts only within a MP, is there a fragment for this or how to create it manually in visual studio?
      
      Thanks
      
  • Service monitor fragment
    2 Posts | Last post December 11, 2017
    • Can I modify the service monitor fragment so that I have the optional task in scom to start the service, not by a recovery but manuely?
    • Yes.  However, you would do that with a recovery, and simply not have the recovery run automatically.
  • Sql Group Propulating Fragment
    3 Posts | Last post November 02, 2017
    • Why did you use PS Script VS OleDB Module directly in SCOM ?
      
    • Probably just familiarity and control.  Have you seen OLEDB module examples?
    • Hi Kevin, I used it to replace script monitor. I used the information provided by Matthiew lung on his blog.
      
      https://matthewlong.wordpress.com/2012/06/23/query-a-database-without-scripting-as-part-of-scom-monitoring-the-system-oledbprobe-module/
      
      I will need more time to test the condition module System.LogicalSet.ExpressionFilter to evaluate condition on a set of row.
      
      For now, we make condition in StoredProc or in the query. 
      
      i can show you my code if you want.  
      
      
  • Unix Computer Group basesd on custom class
    1 Posts | Last post September 18, 2017
    • Kevin,
      
      Maybe an addittion for the fragments for creating a group of Unix computers based on the custom classid.
      
            <Discovery ID="##CompanyID##.##AppName##.UnixComputers.Group.Discovery" Enabled="true" Target="##CompanyID##.##AppName##.UnixComputers.Group" ConfirmDelivery="false" Remotable="true" Priority="Normal">
              <Category>Discovery</Category>
              <DiscoveryTypes>
                <DiscoveryRelationship TypeID="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities" />
              </DiscoveryTypes>
              <DataSource ID="GroupPopulationDataSource" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
                <RuleId>$MPElement$</RuleId>
                <GroupInstanceId>$MPElement[Name="##CompanyID##.##AppName##.UnixComputers.Group"]$</GroupInstanceId>
                <MembershipRules>
                  <MembershipRule>
                    <MonitoringClass>$MPElement[Name="MUL!Microsoft.Unix.Computer"]$</MonitoringClass>
                    <RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
      				<Expression>
      					<Contains>
      						<MonitoringClass>$MPElement[Name="##ClassID##"]$</MonitoringClass>
      					</Contains>
      				</Expression>
      			</MembershipRule>
                </MembershipRules>
              </DataSource>
            </Discovery>
      
              <DisplayString ElementID="##CompanyID##.##AppName##.UnixComputers.Group">
                <Name>##CompanyID## ##AppName## UnixComputers Group</Name>
              </DisplayString>
              <DisplayString ElementID="##CompanyID##.##AppName##.UnixComputers.Group.Discovery">
                <Name>##CompanyID## ##AppName## UnixComputers Group Discovery</Name>
                <Description>This discovery rule populates a group of Unix Computer Objects that contain a ##ClassID## instance</Description>
              </DisplayString>
      
      Kind regards,
      Michiel
  • Powershell timed Script Monitor Fragment
    2 Posts | Last post August 25, 2017
    • I love these fragments!  Do you have any tips on using the Powershell timed script fragment?  I am trying to use it to check whether a file changed and my script works perfectly when I run it on the server but when I put it in the fragment it doesn't even seem to be running.  I have used the fragment though MP Studio to create the MP, and from the Event log on the server the monitor is definitely being deployed.  But I see no evidence that the script is being run.  What could I be missing?  Thanks!
    • without seeing the XML, I don't know. What I do when something like this happens is set a monitor schedule to every 60 seconds and just make the script log an event, such as in my example.  Then that tells me if it is running or not.
  • Fragment that supports SNMP performance gathering
    2 Posts | Last post August 13, 2017
    • Thank you for creating the fragment library!  I've started to dive in much deeper because of the fragments you created than in the past.  
      
      I'm hoping you can point me in the right direction for creating snmp performance data.  The Rule fragment for performance data is for perfmon only.  I was looking at using the Rule fragment for powershell to gather snmp data.  Is that they best method or is there a better way?
      
      Thanks again.
    • I have no idea.  I don't think that would be very typical.
  • KnowledgeArticle
    2 Posts | Last post August 13, 2017
    • Would a KnowledgeArticle fragment be useful (is it even possible)? I'm just now using VSAE Fragments and am working on a KnowledgeArticle for my MP and do not see such thus far.
    • I don't think it would be that useful - since knowledge is formatted HTML.  I'd think it could be done, but customizing might be difficult unless you can easily just replace standard text.  Knowledge can definitely be included in fragments.
  • Functionality Request
    2 Posts | Last post August 13, 2017
    • I'm looking to create a management pack with a rule that initiates a PowerShell script, monitors the result of that script, then generates a SCOM alert if the resulting condition is indicated. I started by following this article:
      
      https://blogs.technet.microsoft.com/jonathanalmquist/2010/05/25/how-to-generate-an-alert-directly-from-a-script-based-rule/
      
      But want to do this with VSAE + fragments for other platform support. Is this possible?
      
      Thanks!
      
    • I just added this in the latest version 2.3
11 - 20 of 24 Items