Discussion:
[cacti-user] Templates for graphing Cisco CBWFQ Policy
Khemara Lyn
2013-05-08 04:50:56 UTC
Permalink
Dear All,

I like to use the template on this thread and appreciate the author so much:

http://forums.cacti.net/viewtopic.php?f=12&t=42599&start=0

which is about graphing Cisco CBWFQ Policy.

I need some help to extend the template so that the graph indices on the
"Create Graph" for a device are listed in a more readable way. Right
now, each graph index is listed as a plain number. A more readable one
should contain interface name/description and class-map name.

I found the following list of OIDs from a script by Maxstoner on this
thread: http://forums.cacti.net/about33275.html and this
CISCO-CLASS-BASED-QOS-MIB IODs:
ftp://ftp.cisco.com/pub/mibs/oid/CISCO-CLASS-BASED-QOS-MIB.oid:

"config" => ".1.3.6.1.4.1.9.9.166.1.7.1.1.1", # list of all
configured QoS classes
"config_index" => ".1.3.6.1.4.1.9.9.166.1.5.1.1.2", # cbQosConfigIndex
"int_index" => ".1.3.6.1.4.1.9.9.166.1.1.1.1.4", # cbQosIfIndex
"policy_direction" => ".1.3.6.1.4.1.9.9.166.1.1.1.1.3", #
cbQosPolicyDirection
"int_name" => ".1.3.6.1.2.1.31.1.1.1.1",
"int_description" => ".1.3.6.1.2.1.31.1.1.1.18",
"class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.11",
"pre_class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.7",
"drop_class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.18",
"drop_class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.17",
"pre_class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.6",
"class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.10",

I'm looking for a way to relate the indices to corresponding interface
names and class-maps.

Please help! I would be very very grateful for this.

Sincerely,
Khem
Gandalf
2013-05-11 15:29:19 UTC
Permalink
In case corresponding interface names and class-maps are already part of the XML
file of that data query, you're mostly done and should perhaps only add some
title and stuff to the "suggested names" section of the graph template allocated
with that data query.

In case they're missing, you'll have to add the OIDs to the <fields> section of
that very XML file.

Both aspects are explained in the howto sections of SNMP Data Queries at
http://docs.cacti.net

Reinhard
Post by Khemara Lyn
Dear All,
http://forums.cacti.net/viewtopic.php?f=12&t=42599&start=0
which is about graphing Cisco CBWFQ Policy.
I need some help to extend the template so that the graph indices on the
"Create Graph" for a device are listed in a more readable way. Right
now, each graph index is listed as a plain number. A more readable one
should contain interface name/description and class-map name.
I found the following list of OIDs from a script by Maxstoner on this
thread: http://forums.cacti.net/about33275.html and this
"config" => ".1.3.6.1.4.1.9.9.166.1.7.1.1.1", # list of all
configured QoS classes
"config_index" => ".1.3.6.1.4.1.9.9.166.1.5.1.1.2", # cbQosConfigIndex
"int_index" => ".1.3.6.1.4.1.9.9.166.1.1.1.1.4", # cbQosIfIndex
"policy_direction" => ".1.3.6.1.4.1.9.9.166.1.1.1.1.3", #
cbQosPolicyDirection
"int_name" => ".1.3.6.1.2.1.31.1.1.1.1",
"int_description" => ".1.3.6.1.2.1.31.1.1.1.18",
"class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.11",
"pre_class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.7",
"drop_class_traffic" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.18",
"drop_class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.17",
"pre_class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.6",
"class_byte" => ".1.3.6.1.4.1.9.9.166.1.15.1.1.10",
I'm looking for a way to relate the indices to corresponding interface
names and class-maps.
Please help! I would be very very grateful for this.
Sincerely,
Khem
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
cacti-user mailing list
https://lists.sourceforge.net/lists/listinfo/cacti-user
Loading...