query_ifAlias doesn't seem to work on my ASR1002 router
Moderators: Developers, Moderators
query_ifAlias doesn't seem to work on my ASR1002 router
ifName and ifDescr work fine, but can't seem to get ifAlias to display anything, works on my 6500s, my ASA, 3750s, etc etc. Any suggestions?
Do you write interface description to your router config?
DESCRIPTION in your router config comes to ifAlias string.
If you don't write that, ifAlias shows blank.
Code: Select all
!
interface <SOME-INTERFACE>
description <DESCRIPTION>
If you don't write that, ifAlias shows blank.
yup, they all have descriptions, it doesn't come up blank, it displays the command
Code: Select all
|query_ifAlias|
Humm, It is very similar to the situation described here.
http://bugs.cacti.net/view.php?id=683
But as all your routers have descriptions, it should work fine.
To make sure of it, please test to get ifAlias strings by command line.
http://bugs.cacti.net/view.php?id=683
But as all your routers have descriptions, it should work fine.
To make sure of it, please test to get ifAlias strings by command line.
Code: Select all
snmpwalk -v 1 -c <COMMUNITY> <ROUTER IP> .1.3.6.1.2.1.31.1.1.1.18
Code: Select all
# snmpwalk -v 1 -c aaa zzz.zzz.zzz.zzz .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.1 = STRING: NJEdge Trunk Vlans ttt/nnn
IF-MIB::ifAlias.2 = STRING:
IF-MIB::ifAlias.3 = STRING: Connection_To_LightPath
IF-MIB::ifAlias.4 = STRING: Connection to Cisco SCE
IF-MIB::ifAlias.5 = STRING: Out of Band Managment
IF-MIB::ifAlias.6 = STRING:
IF-MIB::ifAlias.7 = STRING: 30MB BE & 5MB PD to NJEdge BGP Neighbor: yyy.yyy.yyy.yyy
IF-MIB::ifAlias.8 = STRING: 40MB to NJEdge BGP Neighbor: xxx.xxx.xxx.xxx
There seems to be no problem in the setting of the device.
Then, let's confirm the setting of Cacti.
1) In which situation Cacti can't handle the variable? Graph Title? Or something else?
For example, Is the graph like the attached file displayed?
2)How about the result of Data Query Debug information?
You can check it by the following operation.
3. Can you change the title of existing graph that contains "ifAlias" manually?
Try following operation. You shold choose some interface traffic graph.
Then, let's confirm the setting of Cacti.
1) In which situation Cacti can't handle the variable? Graph Title? Or something else?
For example, Is the graph like the attached file displayed?
2)How about the result of Data Query Debug information?
You can check it by the following operation.
Here is an example of the result."Devices" > CHOOSE SOME DEVICE > "Verbose Query" at "Associated Data Queries"
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
~~~~~~~ SNIP ~~~~~~~~~~
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias=''] index: 4 [from value]
+ Found item [ifAlias='### SOME DESCRIPTION ###'] index: 5 [from value]
+ Found item [ifAlias='### SOME DESCRIPTION ###'] index: 6 [from value]
~~~~~~~ SNIP ~~~~~~~~~~
Try following operation. You shold choose some interface traffic graph.
"Management" > "Graph Management" > CHOOSE SOME GRAPH
set the variable "|query_ifAlias|" at "Title"
save
- Attachments
-
- ifAlias.PNG (17.73 KiB) Viewed 3214 times
Re: query_ifAlias doesn't seem to work on my ASR1002 router
Hello
just for you information,
I had the same issue with a cisco catalyst and when I did the verbose query, like pecty, it worked fine.
Thank you.
just for you information,
I had the same issue with a cisco catalyst and when I did the verbose query, like pecty, it worked fine.
Thank you.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: query_ifAlias doesn't seem to work on my ASR1002 router
The refresh will re-index the data query. This in turn takes care of any index changes of the given query
R.
R.
Who is online
Users browsing this forum: No registered users and 4 guests