Add Cisco Description field to Graph title

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

Moderators: Developers, Moderators

Post Reply
Neilbo
Posts: 36
Joined: Fri Mar 23, 2007 3:31 pm

Add Cisco Description field to Graph title

Post by Neilbo »

Has anyone figured out how query description field and add it to the graphs? I am not sure what to type into the template for this.

Any help is appreciated
NetAdmin
Cacti User
Posts: 98
Joined: Wed Aug 30, 2006 8:45 pm

Re: Add Cisco Description field to Graph title

Post by NetAdmin »

Neilbo wrote:Has anyone figured out how query description field and add it to the graphs? I am not sure what to type into the template for this.
In my graph template, for the graph title I have: |host_description| - |query_ifAlias|. This will query the description of the Cisco interface that you are graphing.

Hope this helps.
Neilbo
Posts: 36
Joined: Fri Mar 23, 2007 3:31 pm

Post by Neilbo »

I was wanting to show the manaul description. Currently it lists the port number and the vlan interface. In my switches I also add a more custom description to the interface telling me what the vlan is for. If this could be pulled and inserted into cacti, I could eaisly remember what the vlans are for.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Visit Data Queries
Select the Traffic stuff
Select the Graph Template you're using
Change the Suggested Values Section to your liking
Reapply Suggested Names from Graph Management.
If you want to add new descriptive columns, see http://docs.cacti.net/node/225 as a start
Reinhard
Neilbo
Posts: 36
Joined: Fri Mar 23, 2007 3:31 pm

Post by Neilbo »

Looking for the exact snmp query for manaul des. It pulls interface description but I want it to also add the extra descrption whch can be input into each interface on a cisco swtich.

ex
interface vlan 300
Description Used For Managament Vlan


There is an actual description field but I cannot figure out the correct query snmp query for it.
JimB
Posts: 4
Joined: Tue Jul 17, 2007 9:48 am

Re: Add Cisco Description field to Graph title

Post by JimB »

NetAdmin wrote:
Neilbo wrote:Has anyone figured out how query description field and add it to the graphs? I am not sure what to type into the template for this.
In my graph template, for the graph title I have: |host_description| - |query_ifAlias|. This will query the description of the Cisco interface that you are graphing.

Hope this helps.
I just tried this (I think) and it didn't work. What am I missing?

1.) total bone stock cacti install
2.) one cisco switch added using Cisco Router host template
3.) graph created for each interface using In/Out Bits (64-bit Counters)

at this point it starts graphing the traffic in and traffic out of each interface, and the title across the top reads: "core-1 - Traffic - Gi1/1" which corresponds to "|host description| - Traffic - |query_ifName|"

Now my problem is I want it to add the text from the interface's "description" line in IOS. I notice during a verbose query of the device the info is being collected and is named "ifAlias". So I tried this:

1.) console -> Graph Templates -> Interface - Traffic (bits/sec) -> Title
it was |host_description| - Traffic
I changed it to |host_description| - |query_ifAlias| - Traffic

Unfortunately 15 minutes later none of the graphs have changed. According to the documentation (http://docs.cacti.net/node/33):
After a graph is attached to a particular graph template, all changes made to the graph template will propagate out to all of its graphs.
Where am I going wrong?
Neilbo
Posts: 36
Joined: Fri Mar 23, 2007 3:31 pm

Post by Neilbo »

Thats perfect!!! thanks you
JimB
Posts: 4
Joined: Tue Jul 17, 2007 9:48 am

Post by JimB »

perfect? It doesn't work, thats my problem.
ialves
Posts: 2
Joined: Fri Jul 20, 2007 8:30 am
Location: Brasil - SP

Post by ialves »

It worked for me, but only for the first 15 letters of the description field. Is it possible to extend this 15 letters limitation?

Thx
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

you can extend it in Settings ->Visual -> Data Queries -> Maximum Field Length
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
JimB
Posts: 4
Joined: Tue Jul 17, 2007 9:48 am

Post by JimB »

Figured out my problem, rather obvious in retrospect. You have to uncheck the box underneath "title".

Its also kindof odd that the info that is defaultly in that field, is not actually the defaults cacti uses.
kjstech
Cacti User
Posts: 97
Joined: Thu Feb 28, 2013 2:57 pm

Re: Add Cisco Description field to Graph title

Post by kjstech »

This works for me but is there any way to suppress |query_ifAlias| from displaying in the graph description when there is no port description defined on the switch?

I have quite a few ports without descriptions so that would be great to suppress this text for those ports automatically.
voyager
Posts: 21
Joined: Sat Jun 14, 2014 11:01 am

Re: Add Cisco Description field to Graph title

Post by voyager »

I need that too (supression of query_ifAlias if not configured at router). Anybody share.
aftershocks
Cacti User
Posts: 117
Joined: Fri Aug 22, 2014 2:11 pm

Re: Add Cisco Description field to Graph title

Post by aftershocks »

voyager wrote:I need that too (supression of query_ifAlias if not configured at router). Anybody share.
I have that issue too.. :( no idea how to overcome it..
wenko
Posts: 5
Joined: Mon Feb 15, 2016 3:03 pm

Re: Add Cisco Description field to Graph title

Post by wenko »

I've got this working, but when I update a description I would expect to see it updated at the next interval, instead it's still the old description of "SPARE" and not the new interface description (alias). Any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests