Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
rhart211 wrote:How do you change the name of this graph? I don't want to change the name of the template, just the graph that is generated.
Thank you
I'm not sure what you're after. There are 2 names, the graph template name, and the title / name of the individual graphs.
There is the Graph Template itself: "Packetshaper Class Traffic". This can be changed by going to Graph Templates, and editing the template.
Within the graph template, there is the "Title" field. This is what shows up across the top of a graph when viewing it. It is what I was referring to in my previous post.
Perhaps if you still don't understand you could post a screen shot of what you're trying to change.
melchandra wrote:
Yeah, I actually changed that around a lot before deciding on the longer title. Feel free to change it in the graph template.
We have a lot of class/subclass definitions on our packetshaper so it made sense to include the longer names as it helps to figure out what traffic really is. Otherwise I ended up with 6 graphs all with the class "SSL", instead of "SSL/HTTP", or "SSL/Default", etc etc. And I also changed the cacti option for maximum title length to 128.
How do you change the maximum length? Where is this located?
Thanks
I have done a snmpwalk, and I am still uncertain how to get the title to say the name correctly. I would like it to say: /Direction/Partition/Class such as /Inbound/ResNet/Half-life.
Thanks
I'm mis-interpreting the oids in my query. The field name |query_psClassDirection| is actually the Packeteer MIB ClassOwningPartName, meaning the owning partition name. So if you use sub-partitions underneath /inbound and /outbound, the "direction" will be that sub-partition. I think you can use the field |query_psClassFullName| to get the full /inbound/resnet/http names.
I'm working on a new version of the query xml file so if you can wait a day or 2 I should have that for download here.
Here are the new files. I discovered a few things.
1. The field formerly knows as "Direction" is actually the field "ClassOwningPartition". It gives the name of the owning partition. At the time I had no partitions, so it gave "Inbound" or "Outbound" for all of my sub-classes, so it seemed like the direction field to me. The real direction field has been added, but only contains the integer values 1 and 2. I can't find any way (other that a custom script) to get Cacti to recognize these values, but render them as inbound or outbound.
2. The filed knows as "Direction" now contains the proper information, either 1 for inbound, or 2 for outbound
3. The field known as "Direction", meaning the owning partition is now avialiable as "psClassOwningPartition"
4. The packetshaper class template has been changed to use |query_psClassFullName| in the title which should take the form "/Inbound/ResNet/Http/Myspace". Or whatever the case may be.
5. After you import the file, you will need to re-run the snmp-query, open the graph template, verify the new title is there, then save it (even if you didn't change anything, this forces Cacti to regenerate the graph titles).
6. Sorry about the delay... work got incredibly busy for me the last week so I was unable to work on this.
7. You have to be running 0.8.6j or newer to import all the files correctly.
running version is 0.8.6i and operating system is debian. Yes i can import other files from packetshaper_xml_files.zip package without any problems. Only problem file is cacti_graph_template_packetshaper_class_traffic file.
I'm running 0.8.6j. You'll need to upgrade before the file will import. Or figure out how to hack the file so it will. I don't think the file contains any elements that are "j" dependent - but you never know.