PageRenderTime 28ms CodeModel.GetById 12ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/ajakubo1/opennms
XML | 240 lines | 215 code | 21 blank | 4 comment | 0 complexity | 4f0739bee0c024585c8f7d877cbe9538 MD5 | raw file
  1<?xml version="1.0"?>
  2<datacollection-group name="Net-SNMP">
  3
  4    <resourceType name="diskIOIndex" label="Disk IO (UCD-SNMP MIB)"
  5                  resourceLabel="${diskIODevice} (index ${index})">
  6      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistRegexSelectorStrategy">
  7        <parameter key="match-expression" value="not(#diskIODevice matches '^(loop|ram).*')" />
  8      </persistenceSelectorStrategy>
  9      <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
 10        <parameter key="sibling-column-name" value="diskIODevice" />
 11		<parameter key="replace-all" value="s/^-//" />
 12		<parameter key="replace-all" value="s/\s//" />
 13		<parameter key="replace-all" value="s/:\\.*//" />
 14      </storageStrategy>
 15    </resourceType>
 16
 17    <resourceType name="dskIndex" label="Disk Table Index (UCD-SNMP MIB)"
 18                  resourceLabel="${ns-dskPath} (index ${index})">
 19      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 20      <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
 21        <parameter key="sibling-column-name" value="ns-dskPath" />
 22		<parameter key="replace-first" value="s/^-$/_root_fs/" />
 23		<parameter key="replace-all" value="s/^-//" />
 24		<parameter key="replace-all" value="s/\s//" />
 25		<parameter key="replace-all" value="s/:\\.*//" />
 26      </storageStrategy>
 27    </resourceType>
 28
 29    <resourceType name="lmTempIndex" label="Hardware Sensors: Temperature (lmSensors MIB)" 
 30                  resourceLabel="${lms-tempdevice} (index ${index})">
 31      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 32      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 33    </resourceType>
 34
 35    <resourceType name="lmFanIndex" label="Hardware Sensors: Fan (lmSensors MIB)"
 36                  resourceLabel="${lms-fandevice} (index ${index})">
 37      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 38      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 39    </resourceType>
 40
 41    <resourceType name="lmVoltIndex" label="Hardware Sensors: Voltage (lmSensors MIB)"
 42                  resourceLabel="${lms-voltdevice} (index ${index})">
 43      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
 44      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
 45    </resourceType>
 46
 47      <!-- Net-SNMP MIBs -->
 48      <group name="net-snmp-disk" ifType="all">
 49        <mibObj oid=".1.3.6.1.4.1.2021.9.1.2" instance="dskIndex" alias="ns-dskPath"    type="string" />
 50        <mibObj oid=".1.3.6.1.4.1.2021.9.1.6" instance="dskIndex" alias="ns-dskTotal"   type="gauge" />
 51        <mibObj oid=".1.3.6.1.4.1.2021.9.1.7" instance="dskIndex" alias="ns-dskAvail"   type="gauge" />
 52        <mibObj oid=".1.3.6.1.4.1.2021.9.1.8" instance="dskIndex" alias="ns-dskUsed"    type="gauge" />
 53        <mibObj oid=".1.3.6.1.4.1.2021.9.1.9" instance="dskIndex" alias="ns-dskPercent" type="gauge" />
 54      </group>
 55
 56      <group name="net-snmp-disk-more" ifType="all">
 57        <mibObj oid=".1.3.6.1.4.1.2021.9.1.3"  instance="dskIndex" alias="ns-dskDevice"      type="string" />
 58        <mibObj oid=".1.3.6.1.4.1.2021.9.1.10" instance="dskIndex" alias="ns-dskPercentNode" type="gauge" />
 59      </group>
 60
 61      <group name="net-snmp-disk-highlow" ifType="all">
 62        <mibObj oid=".1.3.6.1.4.1.2021.9.1.11" instance="dskIndex" alias="ns-dskTotalLow"  type="gauge" />
 63        <mibObj oid=".1.3.6.1.4.1.2021.9.1.12" instance="dskIndex" alias="ns-dskTotalHigh" type="gauge" />
 64        <mibObj oid=".1.3.6.1.4.1.2021.9.1.13" instance="dskIndex" alias="ns-dskAvailLow"  type="gauge" />
 65        <mibObj oid=".1.3.6.1.4.1.2021.9.1.14" instance="dskIndex" alias="ns-dskAvailHigh" type="gauge" />
 66        <mibObj oid=".1.3.6.1.4.1.2021.9.1.15" instance="dskIndex" alias="ns-dskUsedLow"   type="gauge" />
 67        <mibObj oid=".1.3.6.1.4.1.2021.9.1.16" instance="dskIndex" alias="ns-dskUsedHigh"  type="gauge" />
 68      </group>
 69
 70      <group name="ucd-loadavg" ifType="ignore">
 71        <mibObj oid=".1.3.6.1.4.1.2021.10.1.5" instance="1" alias="loadavg1"  type="integer" />
 72        <mibObj oid=".1.3.6.1.4.1.2021.10.1.5" instance="2" alias="loadavg5"  type="integer" />
 73        <mibObj oid=".1.3.6.1.4.1.2021.10.1.5" instance="3" alias="loadavg15" type="integer" />
 74      </group>
 75
 76      <group name="ucd-memory" ifType="ignore">
 77        <!-- Total Swap Size configured for the host. -->
 78        <mibObj oid=".1.3.6.1.4.1.2021.4.3"   instance="0" alias="memTotalSwap" type="integer" />
 79        <mibObj oid=".1.3.6.1.4.1.2021.4.4"   instance="0" alias="memAvailSwap" type="integer" />
 80        <mibObj oid=".1.3.6.1.4.1.2021.4.5"   instance="0" alias="memTotalReal" type="integer" />
 81        <mibObj oid=".1.3.6.1.4.1.2021.4.6"   instance="0" alias="memAvailReal" type="integer" />
 82        <mibObj oid=".1.3.6.1.4.1.2021.4.11"  instance="0" alias="memTotalFree" type="integer" />
 83        <mibObj oid=".1.3.6.1.4.1.2021.4.13"  instance="0" alias="memShared"    type="integer" />
 84        <mibObj oid=".1.3.6.1.4.1.2021.4.14"  instance="0" alias="memBuffer"    type="integer" />
 85        <mibObj oid=".1.3.6.1.4.1.2021.4.15"  instance="0" alias="memCached"    type="integer" />
 86        <!-- Error flag.  1 indicates very little swap space left -->
 87        <mibObj oid=".1.3.6.1.4.1.2021.4.100" instance="0" alias="memSwapError" type="integer" />
 88      </group>
 89
 90      <group name="ucd-sysstat" ifType="ignore">
 91        <mibObj oid=".1.3.6.1.4.1.2021.11.3"  instance="0" alias="SwapIn"          type="integer" />
 92        <mibObj oid=".1.3.6.1.4.1.2021.11.4"  instance="0" alias="SwapOut"         type="integer" />
 93        <mibObj oid=".1.3.6.1.4.1.2021.11.7"  instance="0" alias="SysInterrupts"   type="integer" />
 94        <mibObj oid=".1.3.6.1.4.1.2021.11.8"  instance="0" alias="SysContext"      type="integer" />
 95        <mibObj oid=".1.3.6.1.4.1.2021.11.50" instance="0" alias="CpuRawUser"      type="counter" />
 96        <mibObj oid=".1.3.6.1.4.1.2021.11.51" instance="0" alias="CpuRawNice"      type="counter" />
 97        <mibObj oid=".1.3.6.1.4.1.2021.11.52" instance="0" alias="CpuRawSystem"    type="counter" />
 98        <mibObj oid=".1.3.6.1.4.1.2021.11.53" instance="0" alias="CpuRawIdle"      type="counter" />
 99        <mibObj oid=".1.3.6.1.4.1.2021.11.54" instance="0" alias="CpuRawWait"      type="counter" />
100        <mibObj oid=".1.3.6.1.4.1.2021.11.55" instance="0" alias="CpuRawKernel"    type="counter" />
101        <mibObj oid=".1.3.6.1.4.1.2021.11.56" instance="0" alias="CpuRawInterrupt" type="counter" />
102        <mibObj oid=".1.3.6.1.4.1.2021.11.57" instance="0" alias="IORawSent"       type="counter" />
103        <mibObj oid=".1.3.6.1.4.1.2021.11.58" instance="0" alias="IORawReceived"   type="counter" />
104      </group>
105
106      <group name="ucd-sysstat-raw" ifType="ignore">
107        <mibObj oid=".1.3.6.1.4.1.2021.11.59" instance="0" alias="SysRawInterrupts" type="counter" />
108        <mibObj oid=".1.3.6.1.4.1.2021.11.60" instance="0" alias="SysRawContext"    type="counter" />
109      </group>
110
111      <group name="ucd-sysstat-raw-more" ifType="ignore">
112        <mibObj oid=".1.3.6.1.4.1.2021.11.61" instance="0" alias="CpuRawSoftIRQ" type="counter" />
113        <mibObj oid=".1.3.6.1.4.1.2021.11.62" instance="0" alias="RawBlksSwapIn" type="counter" />
114        <mibObj oid=".1.3.6.1.4.1.2021.11.63" instance="0" alias="RawBlksSwapOut" type="counter" />
115      </group>
116
117      <group name="ucd-diskio" ifType="all">
118        <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.2" instance="diskIOIndex" alias="diskIODevice"   type="string" />
119        <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.3" instance="diskIOIndex" alias="diskIONRead"    type="counter" />
120        <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.4" instance="diskIOIndex" alias="diskIONWritten" type="counter" />
121        <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.5" instance="diskIOIndex" alias="diskIOReads"    type="counter" />
122        <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.6" instance="diskIOIndex" alias="diskIOWrites"   type="counter" />
123      </group>
124
125      <!-- lmsensors MIBs -->
126      <group name="lmsensors-temp" ifType="all">
127        <mibObj oid=".1.3.6.1.4.1.2021.13.16.2.1.2" instance="lmTempIndex" alias="lms-tempdevice" type="string"/>
128        <mibObj oid=".1.3.6.1.4.1.2021.13.16.2.1.3" instance="lmTempIndex" alias="lms-temp" type="gauge32"/>
129      </group>
130
131      <group name="lmsensors-fan" ifType="all">
132        <mibObj oid=".1.3.6.1.4.1.2021.13.16.3.1.2" instance="lmFanIndex" alias="lms-fandevice" type="string"/>
133        <mibObj oid=".1.3.6.1.4.1.2021.13.16.3.1.3" instance="lmFanIndex" alias="lms-fan" type="gauge32"/>
134      </group>
135
136      <group name="lmsensors-volt" ifType="all">
137        <mibObj oid=".1.3.6.1.4.1.2021.13.16.4.1.2" instance="lmVoltIndex" alias="lms-voltdevice" type="string"/>
138        <mibObj oid=".1.3.6.1.4.1.2021.13.16.4.1.3" instance="lmVoltIndex" alias="lms-volt" type="gauge32"/>
139      </group>
140
141      <systemDef name="Net-SNMP (UCD)">
142        <sysoidMask>.1.3.6.1.4.1.2021.250.</sysoidMask>
143        <collect>
144          <includeGroup>mib2-host-resources-system</includeGroup>
145          <includeGroup>mib2-host-resources-memory</includeGroup>
146          <includeGroup>mib2-host-resources-storage</includeGroup>
147          <includeGroup>net-snmp-disk</includeGroup>
148          <includeGroup>net-snmp-disk-more</includeGroup>
149          <includeGroup>net-snmp-disk-highlow</includeGroup>
150          <includeGroup>ucd-loadavg</includeGroup>
151          <includeGroup>ucd-memory</includeGroup>
152          <includeGroup>ucd-sysstat</includeGroup>
153          <includeGroup>ucd-sysstat-raw</includeGroup>
154          <includeGroup>ucd-sysstat-raw-more</includeGroup>
155          <includeGroup>lmsensors-temp</includeGroup>
156          <includeGroup>lmsensors-fan</includeGroup>
157          <includeGroup>lmsensors-volt</includeGroup>
158        </collect>
159      </systemDef>
160
161      <systemDef name="Net-SNMP">
162        <sysoidMask>.1.3.6.1.4.1.8072.3.</sysoidMask>
163        <collect>
164          <includeGroup>mib2-host-resources-system</includeGroup>
165          <includeGroup>mib2-host-resources-memory</includeGroup>
166          <includeGroup>mib2-X-interfaces</includeGroup>
167          <includeGroup>mib2-X-interfaces-pkts</includeGroup>
168          <includeGroup>net-snmp-disk</includeGroup>
169          <includeGroup>net-snmp-disk-more</includeGroup>
170          <includeGroup>net-snmp-disk-highlow</includeGroup>
171          <includeGroup>openmanage-coolingdevices</includeGroup>
172          <includeGroup>openmanage-temperatureprobe</includeGroup>
173          <includeGroup>openmanage-powerusage</includeGroup>
174          <includeGroup>ucd-loadavg</includeGroup>
175          <includeGroup>ucd-memory</includeGroup>
176          <includeGroup>ucd-sysstat</includeGroup>
177          <includeGroup>ucd-sysstat-raw</includeGroup>
178          <includeGroup>ucd-sysstat-raw-more</includeGroup>
179          <includeGroup>lmsensors-temp</includeGroup>
180          <includeGroup>lmsensors-fan</includeGroup>
181          <includeGroup>lmsensors-volt</includeGroup>
182        </collect>
183      </systemDef>
184
185      <systemDef name="Net-SNMP 5.5 with sysObjectID bug on i386">
186        <sysoid>.1.3</sysoid>
187        <collect>
188          <includeGroup>mib2-interfaces</includeGroup>
189          <includeGroup>mib2-tcp</includeGroup>
190          <includeGroup>mib2-icmp</includeGroup>
191          <includeGroup>mib2-powerethernet</includeGroup>
192          <includeGroup>mib2-host-resources-system</includeGroup>
193          <includeGroup>mib2-host-resources-memory</includeGroup>
194          <includeGroup>mib2-X-interfaces</includeGroup>
195          <includeGroup>mib2-X-interfaces-pkts</includeGroup>
196          <includeGroup>net-snmp-disk</includeGroup>
197          <includeGroup>net-snmp-disk-more</includeGroup>
198          <includeGroup>net-snmp-disk-highlow</includeGroup>
199          <includeGroup>openmanage-coolingdevices</includeGroup>
200          <includeGroup>openmanage-temperatureprobe</includeGroup>
201          <includeGroup>openmanage-powerusage</includeGroup>
202          <includeGroup>ucd-loadavg</includeGroup>
203          <includeGroup>ucd-memory</includeGroup>
204          <includeGroup>ucd-sysstat</includeGroup>
205          <includeGroup>ucd-sysstat-raw</includeGroup>
206          <includeGroup>ucd-sysstat-raw-more</includeGroup>
207          <includeGroup>lmsensors-temp</includeGroup>
208          <includeGroup>lmsensors-fan</includeGroup>
209          <includeGroup>lmsensors-volt</includeGroup>
210        </collect>
211      </systemDef>
212
213      <systemDef name="Net-SNMP 5.5 with sysObjectID bug on x86_64">
214        <sysoid>.0.1</sysoid>
215        <collect>
216          <includeGroup>mib2-interfaces</includeGroup>
217          <includeGroup>mib2-tcp</includeGroup>
218          <includeGroup>mib2-icmp</includeGroup>
219          <includeGroup>mib2-powerethernet</includeGroup>
220          <includeGroup>mib2-host-resources-system</includeGroup>
221          <includeGroup>mib2-host-resources-memory</includeGroup>
222          <includeGroup>mib2-X-interfaces</includeGroup>
223          <includeGroup>mib2-X-interfaces-pkts</includeGroup>
224          <includeGroup>net-snmp-disk</includeGroup>
225          <includeGroup>net-snmp-disk-more</includeGroup>
226          <includeGroup>net-snmp-disk-highlow</includeGroup>
227          <includeGroup>openmanage-coolingdevices</includeGroup>
228          <includeGroup>openmanage-temperatureprobe</includeGroup>
229          <includeGroup>openmanage-powerusage</includeGroup>
230          <includeGroup>ucd-loadavg</includeGroup>
231          <includeGroup>ucd-memory</includeGroup>
232          <includeGroup>ucd-sysstat</includeGroup>
233          <includeGroup>ucd-sysstat-raw</includeGroup>
234          <includeGroup>ucd-sysstat-raw-more</includeGroup>
235          <includeGroup>lmsensors-temp</includeGroup>
236          <includeGroup>lmsensors-fan</includeGroup>
237          <includeGroup>lmsensors-volt</includeGroup>
238        </collect>
239      </systemDef>
240</datacollection-group>