locked
???Receiving Traps in SCOM 2012 ??? RRS feed

  • Question

  • I’m attaching the following MP below for assistance with the following

    1. Traps received by Rule are not incrementing the repeat count within the alert generated.

    For example:

    Alert Description:  Switch 1 - Temp Sensor 2, YELLOW IP=xx.xx.xx.xxx. : CiscoEnvMonTempStatusChangeNotif

      2. I need the Source to pick up the value of the OID which contains the device which generated the alert, not the trap forwarding host name.

    <?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <Manifest>
        <Identity>
          <ID>Testing.Network.Node.Manager.MP</ID>
          <Version>1.0.0.0</Version>
        </Identity>
        <Name>Testing Network Node Manager MP</Name>
        <References>
          <Reference Alias="MicrosoftSystemCenterNetworkDeviceLibrary71102260">
            <ID>Microsoft.SystemCenter.NetworkDevice.Library</ID>
            <Version>7.1.10226.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemNetworkManagementLibrary71102260">
            <ID>System.NetworkManagement.Library</ID>
            <Version>7.1.10226.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemLibrary7585010">
            <ID>System.Library</ID>
            <Version>7.5.8501.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="SystemCenter">
            <ID>Microsoft.SystemCenter.Library</ID>
            <Version>7.0.8433.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Health">
            <ID>System.Health.Library</ID>
            <Version>7.0.8433.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <Monitoring>
        <Rules>
          <Rule ID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d" Enabled="false" Target="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
            <Category>Alert</Category>
            <DataSources>
              <DataSource ID="DS" TypeID="SystemNetworkManagementLibrary71102260!System.NetworkManagement.SnmpTrapEventProvider">
                <IP>$Target/Property[Type="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node"]/SNMPAddress$</IP>
                <Version>$Target/Property[Type="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node"]/SNMPVersion$</Version>
                <OIDProps>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.32</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.10.60.5.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.23</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.30</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.43</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.41</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.19</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.40</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.50</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.20</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.27</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.38</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.45</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.29</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.46</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.3</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.10.60.5.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.13</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.3</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.5</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.5</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.35</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.4</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.8</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.48</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.18</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.47</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.39</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.49</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.16.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.28</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.3.4.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.3.4.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.3.4.0.9</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.31</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.42</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.12</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.18</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.46.2.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.3.4.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.2.6.3.0.58</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.36</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.17</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.11</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.44</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.10</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.23</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.5.0.3</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.5.0.5</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.16</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.9</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.13</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.11.2.17.19.2.0.15</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.46.1.3.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.4</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.5.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.106.2.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.13</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.13</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.16</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.20</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.18</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.32</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.14.16.2.0.16</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.5.11.2.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.16.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.33</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.3</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.12</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.17.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.14</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.21</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.22</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.41</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.10</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.17</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.27</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.616.0.8</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.14</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.18</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.68.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.2.2.1.8</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.15.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.5.0.4</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.31</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.305.1.3.5.0.1</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.14</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.34</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.41</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.9</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.4</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.29</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.13</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.21</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.15.0.2</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.4</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.11</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.42</OIDProp>
                  <OIDProp>.1.3.6.1.2.1.2.2.1.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.6</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.8</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.2272.1.21.0.42</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.7</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.28</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.8</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.14179.1.0.8</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.8083.1.1.12.3.0.17</OIDProp>
                  <OIDProp>.1.3.6.1.4.1.9.9.13.3.0.9</OIDProp>
                </OIDProps>
                <EventOriginId>$Target/Id$</EventOriginId>
                <PublisherId>$Target/Id$</PublisherId>
                <PublisherName>Snmp Event</PublisherName>
                <Channel>SnmpEvent</Channel>
                <LoggingComputer />
                <EventNumber>1501</EventNumber>
                <EventCategory>5</EventCategory>
                <EventLevel>10</EventLevel>
                <UserName />
                <Params />
              </DataSource>
            </DataSources>
            <WriteActions>
              <WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
                <Priority>1</Priority>
                <Severity>2</Severity>
                <AlertOwner />
                <AlertMessageId>$MPElement[Name="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d.AlertMessage"]$</AlertMessageId>
                <AlertParameters>
                  <AlertParameter1>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[30]/Value$</AlertParameter1>
                  <AlertParameter2>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[26]/Value$</AlertParameter2>
                  <AlertParameter3>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[10]/Value$</AlertParameter3>
                </AlertParameters>
                <Suppression />
                <Custom1>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[23]/Value$</Custom1>
                <Custom2 />
                <Custom3 />
                <Custom4 />
                <Custom5 />
                <Custom6 />
                <Custom7 />
                <Custom8 />
                <Custom9 />
                <Custom10 />
              </WriteAction>
            </WriteActions>
          </Rule>
          <Rule ID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957" Enabled="false" Target="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
            <Category>Alert</Category>
            <DataSources>
              <DataSource ID="DS" TypeID="SystemNetworkManagementLibrary71102260!System.NetworkManagement.SnmpTrapEventProvider">
                <IP>$Target/Property[Type="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node"]/SNMPAddress$</IP>
                <Version>$Target/Property[Type="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node"]/SNMPVersion$</Version>
                <OIDProps>
                  <OIDProp>.1.3.6.1.4.1.9.9.719.0.1</OIDProp>
                </OIDProps>
                <EventOriginId>$Target/Id$</EventOriginId>
                <PublisherId>$Target/Id$</PublisherId>
                <PublisherName>Snmp Event</PublisherName>
                <Channel>SnmpEvent</Channel>
                <LoggingComputer />
                <EventNumber>1501</EventNumber>
                <EventCategory>5</EventCategory>
                <EventLevel>10</EventLevel>
                <UserName />
                <Params />
              </DataSource>
            </DataSources>
            <WriteActions>
              <WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
                <Priority>1</Priority>
                <Severity>2</Severity>
                <AlertOwner />
                <AlertMessageId>$MPElement[Name="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957.AlertMessage"]$</AlertMessageId>
                <AlertParameters>
                  <AlertParameter1>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[35]/Value$</AlertParameter1>
                  <AlertParameter2>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[4]/Value$</AlertParameter2>
                  <AlertParameter3>$Data/EventData/DataItem/SnmpVarBinds/SnmpVarBind[19]/Value$</AlertParameter3>
                </AlertParameters>
                <Suppression />
                <Custom1>$Data/Params/Param[4]$</Custom1>
                <Custom2 />
                <Custom3 />
                <Custom4 />
                <Custom5 />
                <Custom6 />
                <Custom7 />
                <Custom8 />
                <Custom9 />
                <Custom10 />
              </WriteAction>
            </WriteActions>
          </Rule>
        </Rules>
        <Overrides>
          <RulePropertyOverride ID="OverrideForRuleMomUIGeneratedRule3b928e450e484013a5ea231de573ed4dForContextSystemNetworkManagementNode8fe8b994a29c4f4f91a542d08667884a" Context="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node" ContextInstance="ccbbd349-c0ec-9100-5708-083538fe6224" Enforced="false" Rule="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d" Property="Enabled">
            <Value>true</Value>
          </RulePropertyOverride>
          <RulePropertyOverride ID="OverrideForRuleMomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957ForContextSystemNetworkManagementNodeba45f456c4284e87834bce7a4fca2809" Context="SystemNetworkManagementLibrary71102260!System.NetworkManagement.Node" ContextInstance="ccbbd349-c0ec-9100-5708-083538fe6224" Enforced="false" Rule="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957" Property="Enabled">
            <Value>true</Value>
          </RulePropertyOverride>
        </Overrides>
      </Monitoring>
      <Presentation>
        <Folders>
          <Folder ID="Folder_12fcdb69ab2e4d0ea3c4aa2a31a4d5da" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
        </Folders>
        <StringResources>
          <StringResource ID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d.AlertMessage" />
          <StringResource ID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957.AlertMessage" />
        </StringResources>
      </Presentation>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="false">
          <DisplayStrings>
            <DisplayString ElementID="Testing.Network.Node.Manager.MP">
              <Name>Testing Network Node Manager MP</Name>
              <Description>MP to translate SNMP traps from NNM into SCOM alerts</Description>
            </DisplayString>
            <DisplayString ElementID="Folder_12fcdb69ab2e4d0ea3c4aa2a31a4d5da">
              <Name>Testing Network Node Manager MP</Name>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d">
              <Name>Testing NNM alerts</Name>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d.AlertMessage">
              <Name>Testing NNM alerts</Name>
              <Description>Event Description:

    {0}
    {1}. : {2}</Description>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d" SubElementID="DS">
              <Name>SNMP Trap Event provider</Name>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRule3b928e450e484013a5ea231de573ed4d" SubElementID="Alert">
              <Name>Alert</Name>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957">
              <Name>Testing Cisco UCS Alert (from NNM) Alert</Name>
              <Description />
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957.AlertMessage">
              <Name>Testing Cisco UCS Alert (from NNM) Alert</Name>
              <Description>Event Description:
     {0}
     {1}
     {2}</Description>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957" SubElementID="Alert">
              <Name>Alert</Name>
            </DisplayString>
            <DisplayString ElementID="MomUIGeneratedRulee4223e7b46174b93b0d9367fae6fb957" SubElementID="DS">
              <Name>SNMP Trap Event provider</Name>
            </DisplayString>
          </DisplayStrings>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>

    Thursday, September 4, 2014 11:13 AM

All replies

  • I figured out how to get the repeat count to increment by going into the the

    Rule Properties -> Configuration -> Responses -> Select Edit -> Alert Suppression -> Selecting Description

    Basically if everything is a match the counter increments

    Still need an answer to my 2nd question

    Thursday, September 4, 2014 12:39 PM