Details
Assignee
UnassignedUnassignedReporter
David BellDavid BellPriority
Trivial
Details
Details
Assignee
Unassigned
UnassignedReporter
David Bell
David BellPriority
PagerDuty
PagerDuty
PagerDuty
Created June 11, 2013 at 5:08 AM
Updated September 21, 2021 at 9:17 PM
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.
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