Cisco NBAR graphs

Description

Here is a definition that will allow Cisco NBAR data to be collected.
<resourceType name="cnpdSupportedProtocolsIndex" label="Cisco NBAR" resourceLabel="${cnpdStatsProtocolName}">
<persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
<storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
<parameter key="sibling-column-name" value="cnpdStatsProtocolName" />
</storageStrategy>
</resourceType>

<group name="cisco-nbar" ifType="all">
<mibObj oid=".1.3.6.1.4.1.9.9.244.1.2.1.1.2" instance="cnpdSupportedProtocolsIndex" alias="cnpdStatsProtocolName" type="string" />
<mibObj oid=".1.3.6.1.4.1.9.9.244.1.2.1.1.9" instance="cnpdSupportedProtocolsIndex" alias="cnpdStatsHCInBytes" type="counter" />
<mibObj oid=".1.3.6.1.4.1.9.9.244.1.2.1.1.10" instance="cnpdSupportedProtocolsIndex" alias="cnpdStatsHCOutBytes" type="counter" />
</group>

Then under
<systemDef name="Cisco Routers">

add

<includeGroup>cisco-nbar</includeGroup>

My graph definition is not overly pretty.

  1. NBAR graphs
    report.cisco.nbar.name=NBAR Protocol (Bytes In/Out)
    report.cisco.nbar.columns=cnpdStatsHCInBytes,cnpdStatsHCOutBytes
    report.cisco.nbar.propertiesValues=cnpdStatsProtocolName
    report.cisco.nbar.type=cnpdSupportedProtocolsIndex
    report.cisco.nbar.command=--title="Bits In/Out - {cnpdStatsProtocolName}" \ --lower-limit 0 \ --vertical-label="Bits per second" \ DEF:bytesIn={rrd1}:cnpdStatsHCInBytes:AVERAGE \ DEF:minBytesIn={rrd1}:cnpdStatsHCInBytes:MIN \ DEF:maxBytesIn={rrd1}:cnpdStatsHCInBytes:MAX \ DEF:bytesOut={rrd2}:cnpdStatsHCOutBytes:AVERAGE \ DEF:minBytesOut={rrd2}:cnpdStatsHCOutBytes:MIN \ DEF:maxBytesOut={rrd2}:cnpdStatsHCOutBytes:MAX \ CDEF:bitsOut=bytesOut,8,* \ CDEF:bitsIn=bytesIn,8,* \ AREA:bitsIn#00ff00:"In " \ GPRINT:bitsIn:AVERAGE:"Avg
    : %8.2lf %s" \ GPRINT:bitsIn:MIN:"Min
    : %8.2lf %s" \ GPRINT:bitsIn:MAX:"Max
    : %8.2lf %s
    n" \ LINE1:bitsOut#0000ff:"Out" \ GPRINT:bitsOut:AVERAGE:"Avg
    : %8.2lf %s" \ GPRINT:bitsOut:MIN:"Min
    : %8.2lf %s" \ GPRINT:bitsOut:MAX:"Max
    : %8.2lf %s
    n"

There is more information available under this MIB, but I believe this is the most useful.

http://www.oidview.com/mibs/9/CISCO-NBAR-PROTOCOL-DISCOVERY-MIB.html

Dave

Acceptance / Success Criteria

None

Attachments

2
  • 27 Mar 2014, 01:28 PM
  • 27 Mar 2014, 01:28 PM

Lucidchart Diagrams

Activity

Show:

Alejandro Galue March 27, 2014 at 1:28 PM

I'm attaching the required files to collect NBAR data for review.

Put ciscoNbar.xml on $OPENNMS_HOME/etc/datacollection/, and ciscoNbar.properties on $OPENNMS_HOME/etc/snmp-graph.properties.d/

Then, edit datacollection-config.xml and add a line after Cisco:

<include-collection dataCollectionGroup="Cisco NBAR"/>

Enjoy!

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created June 11, 2013 at 5:08 AM
Updated September 21, 2021 at 9:17 PM