ifAlias - traffic ** description ** at CISCO
Moderators: Developers, Moderators
ifAlias - traffic ** description ** at CISCO
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
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
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:
-Ian
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|)
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.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?
-Ian
-
- Posts: 11
- Joined: Fri Apr 02, 2004 4:52 am
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Holy thread reserection.....
[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]
[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]
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
This restriction holds for ALL |query_*| Variables. If use use |query_ifAlias| - |query_ifDescr| and ifDescr is empty => NOGO.
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests