Peter Nixon avatar Peter Nixon committed f272404

Add support for lmsensors based hardware sensors

Comments (0)

Files changed (1)

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

       </storageStrategy>
     </resourceType>
 
+    <resourceType name="lmTempIndex" label="Hardware Sensors: Temperature (lmSensors MIB)" 
+                  resourceLabel="${lms-tempdevice} (index ${index})">
+      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
+      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
+    </resourceType>
+
+    <resourceType name="lmFanIndex" label="Hardware Sensors: Fan (lmSensors MIB)"
+                  resourceLabel="${lms-fandevice} (index ${index})">
+      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
+      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
+    </resourceType>
+
+    <resourceType name="lmVoltIndex" label="Hardware Sensors: Voltage (lmSensors MIB)"
+                  resourceLabel="${lms-voltdevice} (index ${index})">
+      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
+      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
+    </resourceType>
+
       <!-- Net-SNMP MIBs -->
       <group name="net-snmp-disk" ifType="all">
         <mibObj oid=".1.3.6.1.4.1.2021.9.1.2" instance="dskIndex" alias="ns-dskPath"    type="string" />
         <mibObj oid=".1.3.6.1.4.1.2021.13.15.1.1.6" instance="diskIOIndex" alias="diskIOWrites"   type="counter" />
       </group>
 
+      <!-- lmsensors MIBs -->
+      <group name="lmsensors-temp" ifType="all">
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.2.1.2" instance="lmTempIndex" alias="lms-tempdevice" type="string"/>
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.2.1.3" instance="lmTempIndex" alias="lms-temp" type="gauge32"/>
+      </group>
+
+      <group name="lmsensors-fan" ifType="all">
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.3.1.2" instance="lmFanIndex" alias="lms-fandevice" type="string"/>
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.3.1.3" instance="lmFanIndex" alias="lms-fan" type="gauge32"/>
+      </group>
+
+      <group name="lmsensors-volt" ifType="all">
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.4.1.2" instance="lmVoltIndex" alias="lms-voltdevice" type="string"/>
+        <mibObj oid=".1.3.6.1.4.1.2021.13.16.4.1.3" instance="lmVoltIndex" alias="lms-volt" type="gauge32"/>
+      </group>
+
       <systemDef name="Net-SNMP (UCD)">
         <sysoidMask>.1.3.6.1.4.1.2021.250.</sysoidMask>
         <collect>
           <includeGroup>mib2-host-resources-memory</includeGroup>
           <includeGroup>mib2-host-resources-storage</includeGroup>
           <includeGroup>net-snmp-disk</includeGroup>
-	  <includeGroup>net-snmp-disk-more</includeGroup>
-	  <includeGroup>net-snmp-disk-highlow</includeGroup>
+          <includeGroup>net-snmp-disk-more</includeGroup>
+          <includeGroup>net-snmp-disk-highlow</includeGroup>
           <includeGroup>ucd-loadavg</includeGroup>
           <includeGroup>ucd-memory</includeGroup>
           <includeGroup>ucd-sysstat</includeGroup>
-	  <includeGroup>ucd-sysstat-raw</includeGroup>
-	  <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>ucd-sysstat-raw</includeGroup>
+          <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>lmsensors-temp</includeGroup>
+          <includeGroup>lmsensors-fan</includeGroup>
+          <includeGroup>lmsensors-volt</includeGroup>
         </collect>
       </systemDef>
 
           <includeGroup>mib2-host-resources-memory</includeGroup>
           <includeGroup>mib2-X-interfaces</includeGroup>
           <includeGroup>net-snmp-disk</includeGroup>
-	  <includeGroup>net-snmp-disk-more</includeGroup>
-	  <includeGroup>net-snmp-disk-highlow</includeGroup>
+          <includeGroup>net-snmp-disk-more</includeGroup>
+          <includeGroup>net-snmp-disk-highlow</includeGroup>
           <includeGroup>openmanage-coolingdevices</includeGroup>
           <includeGroup>openmanage-temperatureprobe</includeGroup>
           <includeGroup>openmanage-powerusage</includeGroup>
           <includeGroup>ucd-loadavg</includeGroup>
           <includeGroup>ucd-memory</includeGroup>
           <includeGroup>ucd-sysstat</includeGroup>
-	  <includeGroup>ucd-sysstat-raw</includeGroup>
-	  <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>ucd-sysstat-raw</includeGroup>
+          <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>lmsensors-temp</includeGroup>
+          <includeGroup>lmsensors-fan</includeGroup>
+          <includeGroup>lmsensors-volt</includeGroup>
         </collect>
       </systemDef>
 
           <includeGroup>mib2-host-resources-memory</includeGroup>
           <includeGroup>mib2-X-interfaces</includeGroup>
           <includeGroup>net-snmp-disk</includeGroup>
-	  <includeGroup>net-snmp-disk-more</includeGroup>
-	  <includeGroup>net-snmp-disk-highlow</includeGroup>
+          <includeGroup>net-snmp-disk-more</includeGroup>
+          <includeGroup>net-snmp-disk-highlow</includeGroup>
           <includeGroup>openmanage-coolingdevices</includeGroup>
           <includeGroup>openmanage-temperatureprobe</includeGroup>
           <includeGroup>openmanage-powerusage</includeGroup>
           <includeGroup>ucd-loadavg</includeGroup>
           <includeGroup>ucd-memory</includeGroup>
           <includeGroup>ucd-sysstat</includeGroup>
-	  <includeGroup>ucd-sysstat-raw</includeGroup>
-	  <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>ucd-sysstat-raw</includeGroup>
+          <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>lmsensors-temp</includeGroup>
+          <includeGroup>lmsensors-fan</includeGroup>
+          <includeGroup>lmsensors-volt</includeGroup>
         </collect>
       </systemDef>
 
           <includeGroup>mib2-host-resources-memory</includeGroup>
           <includeGroup>mib2-X-interfaces</includeGroup>
           <includeGroup>net-snmp-disk</includeGroup>
-	  <includeGroup>net-snmp-disk-more</includeGroup>
-	  <includeGroup>net-snmp-disk-highlow</includeGroup>
+          <includeGroup>net-snmp-disk-more</includeGroup>
+          <includeGroup>net-snmp-disk-highlow</includeGroup>
           <includeGroup>openmanage-coolingdevices</includeGroup>
           <includeGroup>openmanage-temperatureprobe</includeGroup>
           <includeGroup>openmanage-powerusage</includeGroup>
           <includeGroup>ucd-loadavg</includeGroup>
           <includeGroup>ucd-memory</includeGroup>
           <includeGroup>ucd-sysstat</includeGroup>
-	  <includeGroup>ucd-sysstat-raw</includeGroup>
-	  <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>ucd-sysstat-raw</includeGroup>
+          <includeGroup>ucd-sysstat-raw-more</includeGroup>
+          <includeGroup>lmsensors-temp</includeGroup>
+          <includeGroup>lmsensors-fan</includeGroup>
+          <includeGroup>lmsensors-volt</includeGroup>
         </collect>
       </systemDef>
 </datacollection-group>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.