Rename a graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Rename a graph

Post by ugob »

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.
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

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!
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

Hi,

Thanks for your response,
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|
There is no "Title" field to be changed there.
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!
Could you provide a little more details? I've tried a few things, but the best I've come with gives something like:

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.
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

host_description| - Traffic - |query_ifName| - |query_ifAlias|

This is what I use for all my cisco interfaces with a problem.
There is no "Title" field to be changed there.
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.

Post a screenshot of what you're looking at.
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

Here is the screenshot of what I'm seeing.
Attachments
cacti.jpg
cacti.jpg (123.94 KiB) Viewed 2673 times
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

When I try |host_description| - Traffic - |query_ifName| |query_ifDescr|, it works, I get 10/100/1000 utp as ifDescr. |query_ifIndex| also works.

How come |query_ifAlias| doesn't work? What is the OID of this? Maybe my switch doesn't return this value?
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

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?
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

ugob wrote:Here is the screenshot of what I'm seeing.
Ok, I found that I must have to check the Title Use Per-Graph Value (Ignore this Value)" checkbox in the graph template before looking there.
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

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?
I got it:

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"
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

My switchport labels 'description blah' show up with a query_ifAlias, perhaps yours is an older IOS? The Alias (IF-MIB) is the one you need to get working.
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

It's a rather recent Catalyst 2948. Is it running catos or ios? How can I tell? Which version should it be running?
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

Do a show ver

Should be IOS 12.2 or 12.3 if that's the case.
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

If you're still running CatOS you deserve what you get anyways :P
ugob
Posts: 27
Joined: Thu Jun 21, 2007 9:24 pm

Post by ugob »

I don't know, I'm not too familiar with cisco systems and I found how to get the version # of the OS, but not the name...
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests