Rename a graph
Moderators: Developers, Moderators
Rename a graph
Hi,
I'm looking for a way to give a significant name to the graphs generated by cacti for a cisco 48-port switch. The title of the graph looks like "switchname - Traffic - 2/1". How could I make it "switchname - Traffic - 2/1 - $DESC" ($DESC being the description of the item that is connected to this port, for example, server1 or internet, or eth1 server2)
Thanks.
I'm looking for a way to give a significant name to the graphs generated by cacti for a cisco 48-port switch. The title of the graph looks like "switchname - Traffic - 2/1". How could I make it "switchname - Traffic - 2/1 - $DESC" ($DESC being the description of the item that is connected to this port, for example, server1 or internet, or eth1 server2)
Thanks.
Hi,
You can either go to graph management > select the graph to edit, and change the title field to something like :
|host_description| - Traffic - |query_ifName| - |query_ifAlias|
If you want this to occur for all interfaces it might be easier to add the above field to the associated graph template under data queries, then run the cli scripts to reindex the hosts and then reapply names.
Hope that helps!
You can either go to graph management > select the graph to edit, and change the title field to something like :
|host_description| - Traffic - |query_ifName| - |query_ifAlias|
If you want this to occur for all interfaces it might be easier to add the above field to the associated graph template under data queries, then run the cli scripts to reindex the hosts and then reapply names.
Hope that helps!
Hi,
Thanks for your response,
switchname - Traffic - 2/1 - |query_ifDescr|
All my ports are defined on the cisco.
Thanks,
Thanks for your response,
There is no "Title" field to be changed there.ben_c wrote:Hi,
You can either go to graph management > select the graph to edit, and change the title field to something like :
|host_description| - Traffic - |query_ifName| - |query_ifAlias|
Could you provide a little more details? I've tried a few things, but the best I've come with gives something like:ben_c wrote: If you want this to occur for all interfaces it might be easier to add the above field to the associated graph template under data queries, then run the cli scripts to reindex the hosts and then reapply names.
Hope that helps!
switchname - Traffic - 2/1 - |query_ifDescr|
All my ports are defined on the cisco.
Thanks,
Last edited by ugob on Mon Mar 31, 2008 7:52 pm, edited 1 time in total.
host_description| - Traffic - |query_ifName| - |query_ifAlias|
This is what I use for all my cisco interfaces with a problem.
Post a screenshot of what you're looking at.
This is what I use for all my cisco interfaces with a problem.
Err, are you clicking on the interface you want to edit to bring up the Graph Template Selection / Supplemental Graph Template Data page? The title is in there.There is no "Title" field to be changed there.
Post a screenshot of what you're looking at.
I got it:ugob wrote:Oh, I found it :
Look what return snmpwalk:
snmpwalk -v1 -c whatever hostname 1.3.6.1.2.1.31.1.1.1.18.1
IF-MIB::ifAlias.1 = STRING:
How do I set that on a cisco Catalyst 29xx switch?
set snmp ifalias {ifIndex} [ifAlias]
http://www.cisco.com/en/US/docs/switche ... /snmp.html
However, when I set it, it still doesn't work. I've tried to clear the pooler cache, still nothing... Well, I see "|query_ifAlias| instead if the ifAlias I've set using the command "set snmp ifalias"
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
If it's running CatOS, you are hosed. I was going to fix that in Cacti, but I have not touched a CatOS device in so long, I can't even quote the models.... Wait, now that I think of it, I still can.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 2 guests