PageRenderTime 36ms CodeModel.GetById 11ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/opennms-base-assembly/src/main/filtered/etc/datacollection/mib2.xml

https://github.com/ajakubo1/opennms
XML | 184 lines | 160 code | 19 blank | 5 comment | 0 complexity | 50fd3ea034edf931d1ef0295f1285467 MD5 | raw file
  1<?xml version="1.0"?>
  2<datacollection-group name="MIB2">
  3
  4    <resourceType name="hrStorageIndex" label="Storage (SNMP MIB-2 Host Resources)"
  5                  resourceLabel="${hrStorageDescr}">
  6      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
  7      <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
  8          <parameter key="sibling-column-name" value="hrStorageDescr" />
  9          <parameter key="replace-first" value="s/^-$/_root_fs/" />
 10          <parameter key="replace-all" value="s/^-//" />
 11          <parameter key="replace-all" value="s/\s//" />
 12          <parameter key="replace-all" value="s/:\\.*//" />
 13      </storageStrategy>
 14    </resourceType>
 15
 16    <resourceType name="hrStorageNonUnique" label="Storage (SNMP MIB-2 Host Resources, non-unique descriptions)"
 17                  resourceLabel="${hrStorageDescr} (index ${index})">
 18      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 19      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 20    </resourceType>
 21
 22    <!-- HOST-RESOURCES hrDeviceTable / hrProcessorTable resource type -->
 23    <resourceType name="hrDeviceEntry" label="Host Resources Device"
 24                  resourceLabel="${hrDeviceDescr} (${index})">
 25      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistRegexSelectorStrategy">
 26        <parameter key="match-expression" value="(#hrDeviceType == '.1.3.6.1.2.1.25.3.1.3')" />
 27      </persistenceSelectorStrategy>
 28      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 29    </resourceType>
 30
 31    <resourceType name="pethMainPseGroupIndex" label="Power Ethernet (MIB-2 powerEthernet)">
 32      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 33      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 34    </resourceType>
 35
 36      <!-- data from standard (mib-2) sources -->
 37      <group name="mib2-interfaces" ifType="all">
 38        <mibObj oid=".1.3.6.1.2.1.2.2.1.2" instance="ifIndex"  alias="ifDescr"         type="string"  />
 39        <mibObj oid=".1.3.6.1.2.1.2.2.1.5" instance="ifIndex"  alias="ifSpeed"         type="string"  />
 40        <mibObj oid=".1.3.6.1.2.1.2.2.1.10" instance="ifIndex" alias="ifInOctets"      type="counter" />
 41        <mibObj oid=".1.3.6.1.2.1.2.2.1.11" instance="ifIndex" alias="ifInUcastpkts"   type="counter" />
 42        <mibObj oid=".1.3.6.1.2.1.2.2.1.12" instance="ifIndex" alias="ifInNUcastpkts"  type="counter" />
 43        <mibObj oid=".1.3.6.1.2.1.2.2.1.13" instance="ifIndex" alias="ifInDiscards"    type="counter" />
 44        <mibObj oid=".1.3.6.1.2.1.2.2.1.14" instance="ifIndex" alias="ifInErrors"      type="counter" />
 45        <mibObj oid=".1.3.6.1.2.1.2.2.1.16" instance="ifIndex" alias="ifOutOctets"     type="counter" />
 46        <mibObj oid=".1.3.6.1.2.1.2.2.1.17" instance="ifIndex" alias="ifOutUcastPkts"  type="counter" />
 47        <mibObj oid=".1.3.6.1.2.1.2.2.1.18" instance="ifIndex" alias="ifOutNUcastPkts" type="counter" />
 48        <mibObj oid=".1.3.6.1.2.1.2.2.1.19" instance="ifIndex" alias="ifOutDiscards"   type="counter" />
 49        <mibObj oid=".1.3.6.1.2.1.2.2.1.20" instance="ifIndex" alias="ifOutErrors"     type="counter" />
 50      </group>
 51
 52      <group name="mib2-X-interfaces" ifType="all">
 53        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.1"  instance="ifIndex" alias="ifName"        type="string"  />
 54        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.15" instance="ifIndex" alias="ifHighSpeed"   type="string"  />
 55        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.6"  instance="ifIndex" alias="ifHCInOctets"  type="Counter64" />
 56        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.10" instance="ifIndex" alias="ifHCOutOctets" type="Counter64" />
 57      </group>
 58
 59      <group name="mib2-X-interfaces-pkts" ifType="all">
 60        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.7"  instance="ifIndex" alias="ifHCInUcastPkts"     type="Counter64"  />
 61        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.8"  instance="ifIndex" alias="ifHCInMulticastPkts" type="Counter64"  />
 62        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.9"  instance="ifIndex" alias="ifHCInBroadcastPkts" type="Counter64"  />
 63        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.11" instance="ifIndex" alias="ifHCOutUcastPkts"    type="Counter64"  />
 64        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.12" instance="ifIndex" alias="ifHCOutMulticastPkt" type="Counter64"  />
 65        <mibObj oid=".1.3.6.1.2.1.31.1.1.1.13" instance="ifIndex" alias="ifHCOutBroadcastPkt" type="Counter64"  />
 66      </group>
 67
 68      <group name="mib2-icmp" ifType="ignore">
 69        <mibObj oid=".1.3.6.1.2.1.5.2"  instance="0" alias="icmpInErrors"        type="counter" />
 70        <mibObj oid=".1.3.6.1.2.1.5.3"  instance="0" alias="icmpInDestUnreachs"  type="counter" />
 71        <mibObj oid=".1.3.6.1.2.1.5.4"  instance="0" alias="icmpInTimeExcds"     type="counter" />
 72        <mibObj oid=".1.3.6.1.2.1.5.6"  instance="0" alias="icmpInSrcQuenchs"    type="counter" />
 73        <mibObj oid=".1.3.6.1.2.1.5.7"  instance="0" alias="icmpInRedirects"     type="counter" />
 74        <mibObj oid=".1.3.6.1.2.1.5.8"  instance="0" alias="icmpInEchos"         type="counter" />
 75        <mibObj oid=".1.3.6.1.2.1.5.15" instance="0" alias="icmpOutErrors"       type="counter" />
 76        <mibObj oid=".1.3.6.1.2.1.5.16" instance="0" alias="icmpOutDestUnreachs" type="counter" />
 77        <mibObj oid=".1.3.6.1.2.1.5.17" instance="0" alias="icmpOutTimeExcds"    type="counter" />
 78        <mibObj oid=".1.3.6.1.2.1.5.19" instance="0" alias="icmpOutSrcQuenchs"   type="counter" />
 79        <mibObj oid=".1.3.6.1.2.1.5.20" instance="0" alias="icmpOutRedirects"    type="counter" />
 80        <mibObj oid=".1.3.6.1.2.1.5.21" instance="0" alias="icmpOutEchos"        type="counter" />
 81        <mibObj oid=".1.3.6.1.2.1.5.22" instance="0" alias="icmpOutEchoReps"     type="counter" />
 82        <mibObj oid=".1.3.6.1.2.1.5.1"  instance="0" alias="icmpInMsgs"          type="counter" />
 83        <mibObj oid=".1.3.6.1.2.1.5.5"  instance="0" alias="icmpInParmProbs"     type="counter" />
 84        <mibObj oid=".1.3.6.1.2.1.5.9"  instance="0" alias="icmpInEchoReps"      type="counter" />
 85        <mibObj oid=".1.3.6.1.2.1.5.10" instance="0" alias="icmpInTimestamps"    type="counter" />
 86        <mibObj oid=".1.3.6.1.2.1.5.11" instance="0" alias="icmpInTimestampReps" type="counter" />
 87        <mibObj oid=".1.3.6.1.2.1.5.12" instance="0" alias="icmpInAddrMasks"     type="counter" />
 88        <mibObj oid=".1.3.6.1.2.1.5.13" instance="0" alias="icmpInAddrMaskReps"  type="counter" />
 89        <mibObj oid=".1.3.6.1.2.1.5.14" instance="0" alias="icmpOutMsgs"         type="counter" />
 90        <mibObj oid=".1.3.6.1.2.1.5.18" instance="0" alias="icmpOutParmProbs"    type="counter" />
 91        <mibObj oid=".1.3.6.1.2.1.5.23" instance="0" alias="icmpOutTimestamps"   type="counter" />
 92        <mibObj oid=".1.3.6.1.2.1.5.24" instance="0" alias="icmpOutTimestmpReps" type="counter" />
 93        <mibObj oid=".1.3.6.1.2.1.5.25" instance="0" alias="icmpOutAddrMasks"    type="counter" />
 94        <mibObj oid=".1.3.6.1.2.1.5.26" instance="0" alias="icmpOutAddrMaskReps" type="counter" />
 95      </group>
 96
 97      <group name="mib2-coffee-rfc2325" ifType="ignore">
 98        <mibObj oid=".1.3.6.1.2.1.10.132.2"     instance="0" alias="coffeePotCapacity" type="integer" />
 99        <mibObj oid=".1.3.6.1.2.1.10.132.4.1.2" instance="0" alias="coffeePotLevel"    type="integer" />
100        <mibObj oid=".1.3.6.1.2.1.10.132.4.1.6" instance="0" alias="coffeePotTemp"     type="integer" />
101      </group>
102
103      <group name="mib2-powerethernet" ifType="all">
104        <mibObj oid="1.3.6.1.2.1.105.1.3.1.1.2" instance="pethMainPseGroupIndex" alias="pethMainPsePower" type="gauge" />
105        <mibObj oid="1.3.6.1.2.1.105.1.3.1.1.4" instance="pethMainPseGroupIndex" alias="pethMainPseConPower" type="gauge" />
106      </group>
107
108      <group name="mib2-tcp" ifType="ignore">
109        <mibObj oid=".1.3.6.1.2.1.6.5"  instance="0" alias="tcpActiveOpens"  type="Counter32" />
110        <mibObj oid=".1.3.6.1.2.1.6.6"  instance="0" alias="tcpPassiveOpens" type="Counter32" />
111        <mibObj oid=".1.3.6.1.2.1.6.7"  instance="0" alias="tcpAttemptFails" type="Counter32" />
112        <mibObj oid=".1.3.6.1.2.1.6.8"  instance="0" alias="tcpEstabResets"  type="Counter32" />
113        <mibObj oid=".1.3.6.1.2.1.6.9"  instance="0" alias="tcpCurrEstab"    type="Gauge32" />
114        <mibObj oid=".1.3.6.1.2.1.6.10" instance="0" alias="tcpInSegs"       type="Counter32" />
115        <mibObj oid=".1.3.6.1.2.1.6.11" instance="0" alias="tcpOutSegs"      type="Counter32" />
116        <mibObj oid=".1.3.6.1.2.1.6.12" instance="0" alias="tcpRetransSegs"  type="Counter32" />
117        <mibObj oid=".1.3.6.1.2.1.6.14" instance="0" alias="tcpInErrors"     type="Counter32" />
118        <mibObj oid=".1.3.6.1.2.1.6.15" instance="0" alias="tcpOutRsts"      type="Counter32" />
119      </group>
120
121      <group name="mib2-ups-rfc1628" ifType="ignore">
122        <mibObj oid=".1.3.6.1.2.1.33.1.2.2"     instance="0" alias="upsSecondsOnBattery" type="Integer32" />
123        <mibObj oid=".1.3.6.1.2.1.33.1.2.3"     instance="0" alias="upsEstMinsRemain"    type="Integer32" />
124        <mibObj oid=".1.3.6.1.2.1.33.1.2.4"     instance="0" alias="upsEstChargeRemain"  type="Integer32" />
125        <mibObj oid=".1.3.6.1.2.1.33.1.2.5"     instance="0" alias="upsBatteryVoltage"   type="Integer32" />
126        <mibObj oid=".1.3.6.1.2.1.33.1.2.6"     instance="0" alias="upsBatteryCurrent"   type="Integer32" />
127        <mibObj oid=".1.3.6.1.2.1.33.1.2.7"     instance="0" alias="upsBatteryTemp"      type="Integer32" />
128        <mibObj oid=".1.3.6.1.2.1.33.1.3.3.1.2" instance="1" alias="upsInputFrequency1"  type="Integer32" />
129        <mibObj oid=".1.3.6.1.2.1.33.1.3.3.1.3" instance="1" alias="upsInputVoltage1"    type="Integer32" />
130        <mibObj oid=".1.3.6.1.2.1.33.1.4.1"     instance="0" alias="upsOutputSource"     type="Integer32" />
131        <mibObj oid=".1.3.6.1.2.1.33.1.4.2"     instance="0" alias="upsOutputFrequency"  type="Integer32" />
132        <mibObj oid=".1.3.6.1.2.1.33.1.4.4.1.2" instance="1" alias="upsOutputVoltage1"   type="Integer32" />
133        <mibObj oid=".1.3.6.1.2.1.33.1.4.4.1.3" instance="1" alias="upsOutputCurrent1"   type="Integer32" />
134        <mibObj oid=".1.3.6.1.2.1.33.1.4.4.1.4" instance="1" alias="upsOutputPower1"     type="Integer32" />
135        <mibObj oid=".1.3.6.1.2.1.33.1.4.4.1.5" instance="1" alias="upsOutputLoad1"      type="Integer32" />
136      </group>
137
138      <group name="mib2-host-resources-storage" ifType="all">
139        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.2" instance="hrStorageIndex" alias="hrStorageType"       type="string" />
140        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.3" instance="hrStorageIndex" alias="hrStorageDescr"      type="string" />
141        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.4" instance="hrStorageIndex" alias="hrStorageAllocUnits" type="gauge" />
142        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.5" instance="hrStorageIndex" alias="hrStorageSize"       type="gauge" />
143        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.6" instance="hrStorageIndex" alias="hrStorageUsed"       type="gauge" />
144      </group>
145
146      <!-- A copy of mib2-host-resources-storage, but using a different resource type to work around
147           certain agents (notably AS/400) whose hrStorageTable entries have non-unique values of
148           hrStorageDescr and are therefore unsuitable for the HostFileSystemStorageStrategy -->
149      <group name="mib2-host-resources-storage-non-unique" ifType="all">
150        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.2" instance="hrStorageNonUnique" alias="hrStorageType"       type="string" />
151        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.3" instance="hrStorageNonUnique" alias="hrStorageDescr"      type="string" />
152        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.4" instance="hrStorageNonUnique" alias="hrStorageAllocUnits" type="gauge" />
153        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.5" instance="hrStorageNonUnique" alias="hrStorageSize"       type="gauge" />
154        <mibObj oid=".1.3.6.1.2.1.25.2.3.1.6" instance="hrStorageNonUnique" alias="hrStorageUsed"       type="gauge" />
155      </group>
156
157      <group name="mib2-host-resources-system" ifType="ignore">
158        <mibObj oid=".1.3.6.1.2.1.25.1.1" instance="0" alias="hrSystemUptime"    type="timeticks" />
159        <mibObj oid=".1.3.6.1.2.1.25.1.5" instance="0" alias="hrSystemNumUsers"  type="gauge" />
160        <mibObj oid=".1.3.6.1.2.1.25.1.6" instance="0" alias="hrSystemProcesses" type="gauge" />
161      </group>
162
163      <group name="mib2-host-resources-memory" ifType="ignore">
164        <mibObj oid=".1.3.6.1.2.1.25.2.2" instance="0" alias="hrMemorySize" type="integer" />
165      </group>
166
167      <group name="mib2-host-resources-processor" ifType="all">
168        <mibObj oid=".1.3.6.1.2.1.25.3.2.1.1" instance="hrDeviceEntry" alias="hrDeviceIndex" type="string" />
169        <mibObj oid=".1.3.6.1.2.1.25.3.2.1.2" instance="hrDeviceEntry" alias="hrDeviceType" type="string" />
170        <mibObj oid=".1.3.6.1.2.1.25.3.2.1.3" instance="hrDeviceEntry" alias="hrDeviceDescr" type="string" />
171        <mibObj oid=".1.3.6.1.2.1.25.3.3.1.2" instance="hrDeviceEntry" alias="hrProcessorLoad" type="Gauge32" />
172      </group>
173
174      <systemDef name="Enterprise">
175        <sysoidMask>.1.3.6.1.4.1.</sysoidMask>
176        <collect>
177          <includeGroup>mib2-interfaces</includeGroup>
178          <includeGroup>mib2-tcp</includeGroup>
179          <includeGroup>mib2-icmp</includeGroup>
180          <includeGroup>mib2-powerethernet</includeGroup>
181        </collect>
182      </systemDef>
183
184</datacollection-group>