Packetshaper templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

ashfieldm
Posts: 25
Joined: Tue Oct 11, 2005 8:47 am

Post by ashfieldm »

Is there any way to capture the CPU Percent Idle times of a Packetshaper?
rmrf
Posts: 5
Joined: Mon Mar 03, 2008 12:36 pm

Post by rmrf »

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
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

rmrf wrote:I installed the templates/xml files but I get the following error when trying to create the classes graph
me too. Anyone have any ideas?
eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

MU-IT wrote:
rmrf wrote:I installed the templates/xml files but I get the following error when trying to create the classes graph
me too. Anyone have any ideas?
Ditto here
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

eternal wrote:
MU-IT wrote:
rmrf wrote:I installed the templates/xml files but I get the following error when trying to create the classes graph
me too. Anyone have any ideas?
Ditto here
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.
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

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
MU-IT
Cacti User
Posts: 113
Joined: Tue Nov 06, 2007 12:07 pm

Post by MU-IT »

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
so please pardon my ignorance... what has to be done in cacti to reflect this change?

I've found the OIDs i need to change it to, and verified them, but what do i change/replace?

thanks.
THS
Posts: 2
Joined: Fri Jan 09, 2009 10:11 am

Post by THS »

oid_index .1.3.6.1.4.1.2334.2.1.4.1 Doesn't work!
eugenef
Posts: 6
Joined: Sat Mar 07, 2009 5:22 am
Contact:

Post by eugenef »

THS wrote:oid_index .1.3.6.1.4.1.2334.2.1.4.1 Doesn't work!
yep... for me it does not work as well...

this one helped for classes

<oid_index>.1.3.6.1.4.1.2334.2.1.4.2.1.36</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]+)$</oid_index_parse>
THS
Posts: 2
Joined: Fri Jan 09, 2009 10:11 am

Post by THS »

@eugenef Thanks, it works very well.

Is there also a new OID for packetshaper_patitions.xml ?
eugenef
Posts: 6
Joined: Sat Mar 07, 2009 5:22 am
Contact:

Post by eugenef »

THS, honestly I do not remember what was the problem with partitions.

There was some issue which I was not able to solve (like OIDs showing partition indexes were empty). I end-up graphing only classes :)
Sabalon
Posts: 3
Joined: Thu Jan 28, 2010 3:18 pm

Post by Sabalon »

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.
Sabalon
Posts: 3
Joined: Thu Jan 28, 2010 3:18 pm

Post by Sabalon »

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.
immauss
Posts: 7
Joined: Mon Nov 15, 2010 7:57 am

Re: Packetshaper templates

Post by immauss »

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?
vovochka
Posts: 7
Joined: Thu Feb 10, 2011 4:27 am

Re: Packetshaper templates

Post by vovochka »

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
ps2.JPG (28.53 KiB) Viewed 2769 times
ps1.JPG
ps1.JPG (15.44 KiB) Viewed 2769 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests