Using ifDescr instead of ifName in the graph title.

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

Moderators: Developers, Moderators

Post Reply
benj
Posts: 5
Joined: Thu Aug 25, 2005 9:42 am

Using ifDescr instead of ifName in the graph title.

Post by benj »

Hi,
I'm sure this must be something trivial but i simply can't seem to find it anywhere.
When creating an interface graph (for example In\Out Bytes) the graph and info come out well, the problem is that the device i'm graphing has the ifName on all interfaces set to one specific name, for that reason i would like to use the ifDescr which gives me something in the format of FastEthernet-11. (which is fine for me.)

I can see that the Graph Template has "|host_description| - Traffic"
the Data Template also has "|host_description| - Traffic"
but, the Data source and the graph itself have "|host_description| - Traffic - |query_ifName|"

Where can i change the default or create a template that will use |quesry_ifDescr| instead of |query_ifName|?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You have to edit the order of the suggested title names in the Data Query for the Interfaces and the associated graph template.

Attached is the edit screen where you move around the titles. The top title, if all variables match will be used, if not all the variables match, then the next one down is used, and so forth.
Attachments
Interface Data Query
Interface Data Query
interface_data_query.jpg (156.42 KiB) Viewed 2105 times
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
benj
Posts: 5
Joined: Thu Aug 25, 2005 9:42 am

Post by benj »

Works great, thanks! :)

Is there a way to template the change?
it seems that the changes only apply to newly created Graphs. (Unless i'm missing something?)
StaWha
Posts: 36
Joined: Tue Jul 26, 2005 11:05 am

Post by StaWha »

In graph managment, just select your graphs and
chose reapply suggested names.
benj
Posts: 5
Joined: Thu Aug 25, 2005 9:42 am

Post by benj »

Works of course.
thanks! :D
benj
Posts: 5
Joined: Thu Aug 25, 2005 9:42 am

Post by benj »

BTW: is there some way to "reapply suggested names" to the Data Sources?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

No.... :(

And I wish there was.....
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

query_ifName

Post by oscar.sanabria »

I have the follow problem:

I have:

Graphs -> Tree Mode -> BSR 64K - Traffic - up10/1
Viewing Graph 'BSR 64K - Traffic - up10/1'

But mi graph title is 'BSR 64K - Traffic - |query_ifName|

And the las t day was working good.

Thanks for your assistance.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest