locked
Custom Overrides RRS feed

  • Question

  • Hi all.

    I have created with autoring console custom type ot monitoring where i have added Configuration Schema

    and when i want to create configuration of monitoring

    But i whant to add code as this one

    Configuration>
              <FirstInterval>120</FirstInterval>
              <FirstIsWriteAction>false</FirstIsWriteAction>
              <FirstIP>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</FirstIP>
              <FirstCommunityString>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/CommunityString$</FirstCommunityString>
              <FirstVersion>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/Version$</FirstVersion>
              <FirstSnmpVarBinds>
                <SnmpVarBind>
                  <OID>.1.3.6.1.2.1.1.5.0</OID>
                  <Syntax>0</Syntax>
                  <Value VariantType="8" />
                </SnmpVarBind>
                <SnmpVarBind>
                  <OID>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</OID>
                  <Syntax>0</Syntax>
                  <Value VariantType="8" />
                </SnmpVarBind>
              </FirstSnmpVarBinds>
              <FirstExpression>
                <SimpleExpression>
                  <ValueExpression>
                    <XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.318.1.1.1.2.2.2.0'][1]/Value</XPathQuery>
                  </ValueExpression>
                  <Operator>GreaterEqual</Operator>
                  <ValueExpression>
                    <Value Type="Integer">40</Value>
                  </ValueExpression>
                </SimpleExpression>
              </FirstExpression>
              <SecondInterval>120</SecondInterval>
              <SecondIsWriteAction>false</SecondIsWriteAction>
              <SecondIP>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/IPAddress$</SecondIP>
              <SecondCommunityString>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/CommunityString$</SecondCommunityString>
              <SecondVersion>$Target/Property[Type="NetLib!Microsoft.SystemCenter.NetworkDevice"]/Version$</SecondVersion>
              <SecondSnmpVarBinds>
                <SnmpVarBind>
                  <OID>.1.3.6.1.2.1.1.5.0</OID>
                  <Syntax>0</Syntax>
                  <Value VariantType="8" />
                </SnmpVarBind>
                <SnmpVarBind>
                  <OID>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</OID>
                  <Syntax>0</Syntax>
                  <Value VariantType="8" />
                </SnmpVarBind>
              </SecondSnmpVarBinds>
              <SecondExpression>
                <SimpleExpression>
                  <ValueExpression>
                    <XPathQuery Type="String">/DataItem/SnmpVarBinds/SnmpVarBind[OID='1.3.6.1.4.1.318.1.1.1.2.2.2.0'][1]/Value</XPathQuery>
                  </ValueExpression>
                  <Operator>Less</Operator>
                  <ValueExpression>
                    <Value Type="Integer">40</Value>
                  </ValueExpression>
                </SimpleExpression>
              </SecondExpression>
            </Configuration>

    and when i whant to write code

    <SnmpVarBind>
                  <OID>.1.3.6.1.2.1.1.5.0</OID>
                  <Syntax>0</Syntax>

    </SnmpVarBind>

    it give me that snmpvarbind have no child as oid and syntax.

    where i must create chilt of parent class ?

    Sorry for my English.

    Monday, March 19, 2012 9:19 AM

All replies

  • or when i whant to write

     

    <ValueVariantType="8"/>

    it retur me that value have no parameter  .where can i Describe it ?

    Monday, March 19, 2012 9:42 AM
  • I think what you're asking is going to be available if you define overrideable parameters on the monitor type.

    HTH, Jonathan Almquist - MSFT

    Tuesday, March 20, 2012 1:46 AM
  • i have define whem but it dont work :(
    Tuesday, March 20, 2012 6:57 AM