Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
indigo423 committed May 17, 2018
1 parent 6cf7dd6 commit 5a8fa5b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 24 deletions.
31 changes: 14 additions & 17 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# net-snmp
= Net-SNMP

OpenNMS configuration for *nix systems with Net-SNMP agent installed.
## Requirements
== Requirements
Running OpenNMS *NIX operating system
Expand All @@ -19,36 +19,36 @@ Running OpenNMS on Windows operating system
- If linking is not possible, you can copy the files to the location
- Optional: git
## Installation
== Installation
.Download and install from GitHub
[source, bash]
----
cd $OPENNMS_HOME/etc/modules-available
mkdir ${HOME}/opennms-config-workspace
cd ${HOME}/opennms-config-workspace
git clone https://github.com/opennms-config-modules/net-snmp.git
----
### Events
.Install 'netsnmp.events.xml'
=== Events
.Install events
[source, bash]
----
cd $OPENNMS_HOME/etc/events
ln -s ../modules-available/net-snmp/events/*.xml .
cp ${HOME}/opennms-config-workspace/net-snmp/events/*.xml ${OPENNMS_HOME}/etc/events
----

.Include in eventconf.xml
[source, xml]
----
<event-file>events/netsnmp.events.xml</event-file>
<event-file>events/net-snmp.events.xml</event-file>
----

### Datacollection
=== Data Collection

.Install datacollection configuration
[source, bash]
----
cd $OPENNMS_HOME/etc/datacollection
ln -s ../modules-available/net-snmp/datacollection/*.xml .
cp ${HOME}/opennms-config-workspace/net-snmp/datacollection/*.xml ${OPENNMS_HOME}/etc/datacollection
----

.Include in datacollection-config.xml
Expand All @@ -59,13 +59,10 @@ ln -s ../modules-available/net-snmp/datacollection/*.xml .
<include-collection dataCollectionGroup="Net-SNMP-system"/>
----

### Graph report definitions
=== Graph Report Definitions

.Install graph report definitions
[source, bash]
----
cd $OPENNMS_HOME/etc/snmp-graph.properties.d
ln -s ../modules-available/net-snmp/graphs/*.properties .
cp ${HOME}/opennms-config-workspace/net-snmp/graphs/*.properties ${OPENNMS_HOME}/etc/snmp-graph.properties.d
----

Licensed under the GNU Affero General Public License 3+. You may obtain a copy of the License at http://www.gnu.org/licenses/agpl-3.0.html.
3 changes: 1 addition & 2 deletions datacollection/netsnmp.disk.dc.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<datacollection-group name="Net-SNMP-disk">
<datacollection-group xmlns="https://xmlns.opennms.org/xsd/config/datacollection" name="Net-SNMP-disk">
<resourceType name="diskIOIndex" label="Disk IO (UCD-SNMP MIB)"
resourceLabel="${diskIODevice} (index ${index})">
<persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistRegexSelectorStrategy">
Expand Down
3 changes: 1 addition & 2 deletions datacollection/netsnmp.lmsensors.dc.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<datacollection-group name="Net-SNMP-lmsensors">
<datacollection-group xmlns="https://xmlns.opennms.org/xsd/config/datacollection" name="Net-SNMP-lmsensors">
<resourceType name="lmTempIndex" label="Hardware Sensors: Temperature (lmSensors MIB)"
resourceLabel="${lms-tempdevice} (index ${index})">
<persistenceSelectorStrategy class="org.opennms.netmgt.collection.support.PersistAllSelectorStrategy"/>
Expand Down
3 changes: 1 addition & 2 deletions datacollection/netsnmp.system.dc.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<datacollection-group name="Net-SNMP-system">
<datacollection-group xmlns="https://xmlns.opennms.org/xsd/config/datacollection" name="Net-SNMP-system">
<group name="ucd-loadavg" ifType="ignore">
<mibObj oid=".1.3.6.1.4.1.2021.10.1.5" instance="1" alias="loadavg1" type="integer"/>
<mibObj oid=".1.3.6.1.4.1.2021.10.1.5" instance="2" alias="loadavg5" type="integer"/>
Expand Down
2 changes: 1 addition & 1 deletion events/netsnmp.events.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<events xmlns="http://xmlns.opennms.org/xsd/eventconf">
<events xmlns="https://xmlns.opennms.org/xsd/eventconf">
<!-- Start of auto generated data from MIB: NET-SNMP-AGENT-MIB -->
<event>
<mask>
Expand Down

0 comments on commit 5a8fa5b

Please sign in to comment.