ifDescr / ifAlias

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

Moderators: Developers, Moderators

Post Reply
river
Posts: 4
Joined: Mon Sep 25, 2006 9:21 am

ifDescr / ifAlias

Post by river »

Hi all,

I try to explain my problem :)

We have some Cisco 6500 in our network. To some ports are servers connected, we write the servername to the interface description.

If I create in Cacti a new device for this Cisco 6500 the interfaces which are up & connected and have a port description my graph template title looks like this:
|host_description| - |query_ifName| - |query_ifAlias|

All other interfaces, which are shutdown and have no port description get this title:
|host_description| - |query_ifName| - |query_ifDescr|

If we add now a server to one of the interfaces and take it up, how can I "rediscover" the Cisco 6500 so that now the former shutdown interfaces are graphed with the correct interface description?

Best regards,
Thorsten
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try Reapply Suggested Names from the Action dropdown on Graph Management
Reinhard
river
Posts: 4
Joined: Mon Sep 25, 2006 9:21 am

Post by river »

lvm wrote:Please try Reapply Suggested Names from the Action dropdown on Graph Management
Reinhard
It worked, thanks a lot.
nsanders
Posts: 21
Joined: Thu Oct 19, 2006 2:01 pm

Post by nsanders »

Does not work for me.

Suggested Values from SNMP Get Interfaces (In/Out Bits)

name |host_description| - Traffic - |query_ifName| - |query_ifAlias|
name |host_description| - Traffic - |query_ifIP| - |query_ifName|
name |host_description| - Traffic - |query_ifName|
name |host_description| - Traffic - |query_ifIP|/|query_ifDescr|
name |host_description| - Traffic - |query_ifDescr|
rrd_maximum |query_ifSpeed|

As you can see I added a new one with "- |query_ifAlias|" to the top of the list. Now, if we walk through my device (HP 3400cl 48G Switch) we see this:

+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='Gold'] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias='Nickel'] index: 3 [from value]
+ Found item [ifAlias='Zinc 2'] index: 4 [from value]
+ Found item [ifAlias='Cobalt'] index: 5 [from value]
......
......

So it sees them, but refuses to populate the graphs.

Why?
nsanders
Posts: 21
Joined: Thu Oct 19, 2006 2:01 pm

Post by nsanders »

Figured out my own problem. Under Suggested Values I was trying to edit "Data Template - Interface - Traffic" and not "Graph Template - Interface - Traffic (bits/sec)".

Now how do I get the graphs to display in proper numeric order

1
2
3
4
5
6
7
8
9
10

and NOT

1
11
12
13
14
15
16
17
18
19
2
20
21
..
river
Posts: 4
Joined: Mon Sep 25, 2006 9:21 am

Post by river »

nsanders wrote: Now how do I get the graphs to display in proper numeric order

1
2
3
4
5
6
7
8
9
10

and NOT

1
11
12
13
14
15
16
17
18
19
2
20
21
..
You have to write it like this:

01
02
....

Or add a blank before the 1, 2, and so on.

best regards
nsanders
Posts: 21
Joined: Thu Oct 19, 2006 2:01 pm

Post by nsanders »

The graph name is written using a combination of variables polled from the switch. This is not something I have control over or can modify.
river
Posts: 4
Joined: Mon Sep 25, 2006 9:21 am

Post by river »

nsanders wrote:The graph name is written using a combination of variables polled from the switch. This is not something I have control over or can modify.
Exact. And you need to patch the sourcecode at the point where the graph name gets build. As far as I know this is nothing you can do with Cacti out of the box.

best regards,
Thorsten
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

nsanders wrote:The graph name is written using a combination of variables polled from the switch. This is not something I have control over or can modify.
Um... yes it is...

Data query suggested names can be altered.
[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]
nsanders
Posts: 21
Joined: Thu Oct 19, 2006 2:01 pm

Post by nsanders »

Care to elaborate how? Also, would it not make sense for Cacti to have this built in? Switches that have identical names except for port numbers come out all wrong in their order because of the lack of a preceeding 0 in single digit numbers.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests