ifAlias - traffic ** description ** at CISCO

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

Moderators: Developers, Moderators

Post Reply
Chris-new

ifAlias - traffic ** description ** at CISCO

Post by Chris-new »

RH 7.3 box []
cacti 0.8.3a

Hi,

sorry IMHO we had this a few times, but I'm a little confused.
I want to generate traffic graphs via SNMP.

by default I got following discription e.g.:
GW-name - Traffic - Se3/3

Ii would be fine to get something like
GW-name - Traffic - Se3/3 - *main ISP pipe - ID676766* - (192.168.1.1)

This means to include " ifAlias - ** description ** ".

I found something that I've to modify "include/snmp_functions.php" to got this.
Is this correct? What I've to do exactly, or is there an easier way.

Why is this not per default active (or included in main code) ?

Sorry for this question, but I'm new as a cacti user. Hope I understand correct

Hope somebody could help me

cheers
Chris
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

You can modify the default title format that Cacti uses on new traffic graphs by doing the following.

Select "Data Queries" on the Cacti menu, and click "SNMP - Interface Statistics". Depending on whether you are creating your graphs in bits or bytes, select "In/Out Bits" or "In/Out Bytes". Under "Graph Template - Interface - Traffic..." you will see the three titles that Cacti will evaluate (in order) to form the title for new traffic graphs. Feel free to delete these and add your own.

Going by your explaination, you would probably want something like:

Code: Select all

|host_description| - Traffic - |query_ifName| - *|query_ifAlias|* - (|query_ifIP|)
-Ian
Chris_new

Post by Chris_new »

Thanks Ian,

works WELL !!

[Remark for everybody, I run in dozens of Problems under RH8&9 crappy Rel./ - 7.3 works fine :-) => I look forward to Fedora 1.0 (RH9.1)]
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Can we modify this php page(I mean polling host page) for adding anoter column to learning which interfaces up or down?
how?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

TFC wrote:Can we modify this php page(I mean polling host page) for adding anoter column to learning which interfaces up or down?
how?
I will end up doing this in some form or another. Instead of adding another column I will probably highlight any such row in red. This is going to have to be added through the XML file structure of data queries somehow and will have to be generic enough to work with other things. I would expect this in the 0.8.4/0.8.5 range of things.

-Ian
mainstreetexpress
Posts: 11
Joined: Fri Apr 02, 2004 4:52 am

Post by mainstreetexpress »

Hi
I have added the code to the as per the instructions and it works well if I create a new interface check, however it has not updated the existing graphs, i.e. it still shows interface ' router_name - traffic ' on the gragh itself even though the Data Query [SNMP - Interface Statistics] shows that all interfaces have the updated appropriate Alias (IF-MIB)

Is there a way to accomplish this without having to remove the existing data sources and starting again?

Mark
laurent
Posts: 13
Joined: Mon Jan 30, 2006 9:58 am

Post by laurent »

You might want to uncheck "Use Per-Graph Value (Ignore this Value)" within the graph template , title section

Rgds
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

Hi All,

I have noticed that |query_ifAlias| is trucated to 15 characters. Is there a way for the whole string to be used?

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

Post by gandalf »

See Settings->Visual for field lengths
Reinhard
hades
Posts: 12
Joined: Mon Mar 13, 2006 6:15 pm
Location: Newcastle, Australia

Post by hades »

Thanks Reinhard!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Holy thread reserection..... :o
[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]
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

What was determined as the way to get the query_ifAlias to show on Graph title?? I've tried adding that to the query section for the interface template i'm using and moved it to the top?? still no go getting that to display?? Any suggestions that i'm missing? or not seeing?

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

Post by gandalf »

First, you must be sure that ifAlias is reported by your target. If not (verify using snmpwalk!), |query_ifAlias| will never be substituted by the correct value. In this case, cacti will use the next title substitution defined by the Data Query for that Graph Template.
This restriction holds for ALL |query_*| Variables. If use use |query_ifAlias| - |query_ifDescr| and ifDescr is empty => NOGO.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests