Packetshaper templates
Moderators: Developers, Moderators
I installed the templates/xml files but I get the following error when trying to create the classes graph
I'm running the software version 6.1.1 on the packeteer and cacti version 0.8.7b
I do get interface statistics from the packeteer,
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Inbound Traffic Analysis" \
--base=1000 \
--height=350 \
--width=750 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/packeteer_class_traffic_471.rrd":class_traffic:AVERAGE \
CDEF:cdefd=a,8,* \
COMMENT:"Note\: This is just a sub-portion of the data. This graph only represents the top few\n" \
COMMENT:"classes that the packetshaper recognizes.\n" \
COMMENT:"\n" \
AREA:cdefd#623465FF:"|query_psClassFullName|" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#00CF00FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#FFF200FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#FF00FFFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#F51D30FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#EA8F00FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#8D00BAFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#0000FFFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/packeteer_class_traffic_471.rrd': No such file or directory
I'm running the software version 6.1.1 on the packeteer and cacti version 0.8.7b
I do get interface statistics from the packeteer,
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Inbound Traffic Analysis" \
--base=1000 \
--height=350 \
--width=750 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/packeteer_class_traffic_471.rrd":class_traffic:AVERAGE \
CDEF:cdefd=a,8,* \
COMMENT:"Note\: This is just a sub-portion of the data. This graph only represents the top few\n" \
COMMENT:"classes that the packetshaper recognizes.\n" \
COMMENT:"\n" \
AREA:cdefd#623465FF:"|query_psClassFullName|" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#00CF00FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#FFF200FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#FF00FFFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#F51D30FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#EA8F00FF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#8D00BAFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n" \
AREA:cdefd#0000FFFF:"|query_psClassFullName|":STACK \
GPRINT:cdefd:LAST:"Current\:%8.2lf %S" \
GPRINT:cdefd:AVERAGE:"Average\:%8.2lf %S" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %S" \
COMMENT:"Total In\: 0 bytes\n"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/packeteer_class_traffic_471.rrd': No such file or directory
The problem is a version mis-match. The version you are running is newer than that of the xml file being provided. As stated earlier, hack the xml to work or run the older version....I would lean towards hack it to work.eternal wrote:Ditto hereMU-IT wrote:me too. Anyone have any ideas?rmrf wrote:I installed the templates/xml files but I get the following error when trying to create the classes graph
so please pardon my ignorance... what has to be done in cacti to reflect this change?zgamer wrote:The packetshaper_classes.xml oid_index changes somewhere in the 8.x code-base for the shapers, the new oid is .1.3.6.1.4.1.2334.2.1.4.1
I've found the OIDs i need to change it to, and verified them, but what do i change/replace?
thanks.
Not to flog a dead horse... but I downloaded the v2 zip file, imported the XML's, etc...
It is successfully polling my PacketShaper and showing the classes. I am able to select the ones I want and have them graphed.
Now I am trying to get the aggregate graph to work. I duplicated the Packetshaper Top Classes Template to my own name, as not to mess with the original.
And I think this is where it gets fuzzy. My top classes show up as
FTP/1 HTTP/1 Default/1 Inbound/1 and so on when I create the classes. So editing the template I created, I click on Class 1 under "Graph Item Inputs" and change the name to match my class name - Inbound/1 for example. I then save it.
First question is - is that what I'm supposed to do - some of the other posts were a little vague and I think my headcold is interfering with my comprehension.
I'm guessing not, because when I go back to create graphs for the device and add my Packetshaper Big Classes graph, as someone else posted, I get asked for Title (filled in as Inbound Traffic Analysis), Index Type, Index Value, and Output Type ID. (I also noticed on the graphs for each class, even though the 8 I selected are graphing, they are not greyed out on that page)
Anyway, I am very confused at this point and really don't know where I'm going wrong. It would seem to be that at some point it's having a hard time associating the instance/index for the 8 items I want, or at least that's my gut feeling.
Thanks.
It is successfully polling my PacketShaper and showing the classes. I am able to select the ones I want and have them graphed.
Now I am trying to get the aggregate graph to work. I duplicated the Packetshaper Top Classes Template to my own name, as not to mess with the original.
And I think this is where it gets fuzzy. My top classes show up as
FTP/1 HTTP/1 Default/1 Inbound/1 and so on when I create the classes. So editing the template I created, I click on Class 1 under "Graph Item Inputs" and change the name to match my class name - Inbound/1 for example. I then save it.
First question is - is that what I'm supposed to do - some of the other posts were a little vague and I think my headcold is interfering with my comprehension.
I'm guessing not, because when I go back to create graphs for the device and add my Packetshaper Big Classes graph, as someone else posted, I get asked for Title (filled in as Inbound Traffic Analysis), Index Type, Index Value, and Output Type ID. (I also noticed on the graphs for each class, even though the 8 I selected are graphing, they are not greyed out on that page)
Anyway, I am very confused at this point and really don't know where I'm going wrong. It would seem to be that at some point it's having a hard time associating the instance/index for the 8 items I want, or at least that's my gut feeling.
Thanks.
Ah...Forum posts always solve my problem. I was so hung up on not getting the prompted for info when creating the graph I didn't take a step further.
After creating the graph, I went to edit that graph and saw where I could select the data sources there. Did so and it appears that happiness is now all around.
After creating the graph, I went to edit that graph and saw where I could select the data sources there. Did so and it appears that happiness is now all around.
Re: Packetshaper templates
My packetshaper is running 8.1.1g1 but there doesn't appear to be any of the class/partition info being made available via SNMP. Is there something special that needs to be done to the PS to make all that info available, or is it just not available on my version?
Re: Packetshaper templates
i have successfully import all these template and manged to graph, but is there anyone can tell why the traffic is not accurate as attached images? The peak traffic showing in my PS was 1.4M, but in the graph showing max was around 300k only.
- Attachments
-
- ps2.JPG (28.53 KiB) Viewed 2847 times
-
- ps1.JPG (15.44 KiB) Viewed 2847 times
Who is online
Users browsing this forum: No registered users and 2 guests