Hi

I was surprised to find OpenNMS does not come with data collection for
OSPF. The first thing I wanted to graph was OSPF Event counters. Here's the
patch. Should apply to datacollection/routers.xml

And the corresponding graph is in ospf-graph.properties and goes to
snmp-graph.properties.d

hth
Dominik

Attachment: ospf-graph.properties
Description: Binary data

diff --git a/routers.xml b/routers.xml
index 12fccc5..830825c 100644
--- a/routers.xml
+++ b/routers.xml
@@ -12,6 +12,11 @@
       <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
     </resourceType>
 
+    <resourceType name="ospfPeerEntry" label="OSPF Peer" resourceLabel="Area ${ospfAreaId} Peer ${ospfPeer}">
+      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
+      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
+    </resourceType>
+
       <group name="rfc1315-frame-relay" ifType="all">
         <mibObj oid=".1.3.6.1.2.1.10.32.2.1.1" instance="frCircuitIfIndex" alias="frIfIndex"        type="string" />
         <mibObj oid=".1.3.6.1.2.1.10.32.2.1.2" instance="frCircuitIfIndex" alias="frDlci"           type="string" />
@@ -32,4 +37,11 @@
         <mibObj oid=".1.3.6.1.2.1.15.3.1.11" instance="bgpPeerEntry" alias="bgpPeerOutUpdates" type="counter" />
       </group>
 
+      <!-- OSPF --> 
+      <group name="ospf-stats" ifType="all">
+        <mibObj oid=".1.3.6.1.2.1.14.7.1.15" instance="ospfPeerEntry" alias="ospfEvents" type="counter" />
+        <mibObj oid=".1.3.6.1.2.1.14.7.1.3" instance="ospfPeerEntry" alias="ospfAreaId" type="string" />
+        <mibObj oid=".1.3.6.1.2.1.14.7.1.1" instance="ospfPeerEntry" alias="ospfPeer" type="string" />
+      </group>
+
 </datacollection-group>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to