changing "title" in graph

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

Moderators: Developers, Moderators

Post Reply
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

changing "title" in graph

Post by Shungo »

Hi all,

i got Cacti running now and it works as promised. :-)

But i have one question:
In my network i have some Cisco routers and some Linksys (Cisco) switches. They are all in Cacti and i get all interfaces shown. But i am not happy with the title in the graphs which are showing the interface name only.
E.q.: g1 for GigabitEthernet1
When checking the switches via snmp i will get IfAlias with my descriptions and my real descriptions on my Cisco routers will not be shown.

How do i change Cacti to read out the real description for using them in the graphs?? I won't do it manually for each interface as i have multiple 48port switches... :-(

Many thanks
Shungo
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: changing "title" in graph

Post by noname »

For instance,
1) Console -> Graph Templates -> your template
2) Edit 'Title' field as you like (e.g. "|host_description| - Traffic - |query_ifAlias|")
3) Click 'Use Per-Graph Value (Ignore this Value)' checkbox off
4) Save

After the above, if title isn't changed when newly added graph, then see this post:
http://forums.cacti.net/viewtopic.php?p=210616#p210616
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

Re: changing "title" in graph

Post by Shungo »

Hi,

many thanks for your update. It works when adding |ifAlias| in the title for my Linksys switches, but not for my Cisco router's.

So what am i doing wrong here???????


Many thanks
Shungo
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: changing "title" in graph

Post by noname »

>> It works when adding |ifAlias| in the title for my Linksys switches, but not for my Cisco router's.

Try
% snmpwalk -v2c -c <community> <router> ifAlias

For Cisco router/switch (I don't know about Linksys), |query_ifAlias| is identical to 'description' in IOS configuration, like this:
Switch# show configuration
...
!
interface FastEthernet0/1
description LAN Port No.1 <--this
switchport access vlan 1
switchport mode access
!
If not set, it can be added as you like manually.
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

Re: changing "title" in graph

Post by Shungo »

Hi,

first at all: Thank you for your feedback. I found the issue, done by myself. Hadn't enabled complete mib tree on my Cisco router. Now it works:

Code: Select all

+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias='Port[VLAN1]'] index: 1 [from value]
+ Found item [ifAlias='Port[VLAN1]'] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias='Port[VLAN 50,199]'] index: 4 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias=''] index: 6 [from value]
+ Found item [ifAlias=''] index: 7 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom]'] index: 8 [from value]
+ Found item [ifAlias=''] index: 9 [from value]
+ Found item [ifAlias=''] index: 10 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom]'] index: 11 [from value]
+ Found item [ifAlias=''] index: 12 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom]'] index: 13 [from value]
+ Found item [ifAlias=''] index: 14 [from value]
+ Found item [ifAlias='Networt[MNS+ Server]'] index: 15 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom]'] index: 16 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom] port[VPI/VCI]'] index: 17 [from value]
+ Found item [ifAlias='IfType[ADSL] ISP[Deutsche Telekom] port[VPI/VCI]'] index: 18 [from value]
+ Found item [ifAlias=''] index: 19 [from value]
+ Found item [ifAlias=''] index: 20 [from value]
+ Found item [ifAlias='Network[MGMT+]'] index: 21 [from value]
+ Found item [ifAlias=''] index: 23 [from value]
+ Found item [ifAlias=''] index: 24 [from value]
+ Found item [ifAlias=''] index: 25 [from value]
+ Found item [ifAlias=''] index: 26 [from value]
+ Found item [ifAlias=''] index: 27 [from value]
+ Found item [ifAlias=''] index: 28 [from value]
+ Found item [ifAlias='Network[Verwaltung]'] index: 29 [from value]

But the alias won't be fully stored in the database therefor they won't be shown fully in he graph. Where is the issue/limitation here?

Database => table "graph_templates_graph" => row "title" / "title_cache"

Code: Select all

Network[MGMT+]
Network[Verwalt
Networt[MNS+ Se
IfType[ADSL] IS
Port[VLAN 50,19
|query_ifAlias|
Port[VLAN1]
Port[VLAN1]
This happens once i have created the graph for the device where this output will be prompt

Code: Select all

•Created graph: Port[VLAN1]
•Created graph: Port[VLAN1]
•Created graph: |query_ifAlias|
•Created graph: Port[VLAN 50,19
•Created graph: IfType[ADSL] IS
•Created graph: Networt[MNS+ Se
•Created graph: Network[MGMT+]
•Created graph: Network[Verwalt

Is it possible get the full Alias into the graph????

Many thanks
Shungo
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: changing "title" in graph

Post by noname »

1) Change 'Maximum Field Length' from 15(default) in 'Settings->Visual'
2) 'Reapply Suggested Names' at 'Data Sources' and 'Graph Management' screen

See also: http://forums.cacti.net/viewtopic.php?f=5&t=39471
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

Re: changing "title" in graph

Post by Shungo »

admn, i haven't seen it there........
many thanks....
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

Re: changing "title" in graph

Post by Shungo »

Hi,

still an ongoing issue with the graph title.

How do i get the real interface name AND the Alias into the graph title????

i got it once but not both together.... :-(

Many thanks
Shungo
Shungo
Posts: 10
Joined: Fri Apr 15, 2011 6:20 am

Re: changing "title" in graph

Post by Shungo »

ok, got it:

"Data Queries" => "SNMP - Interface Statistics" => "In/Out Bits"

add and set to first in "Graph Template - Interface - Traffic (bits/sec)"

Code: Select all

|query_ifName| - |query_ifAlias|

Thanks to all
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests