Can't seem to get ifAlias to work :(

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

Moderators: Developers, Moderators

Post Reply
moajosh
Posts: 5
Joined: Wed Jun 22, 2005 1:00 am
Contact:

Can't seem to get ifAlias to work :(

Post by moajosh »

Hello,

I've searched the whole forum but don't seem to have found a similar problem or any of the other solutions to fix this one.

I'm trying to use the |query_ifAlias| in my graphs but instead of printing the description on each port it prints out "|query_ifAlias|"

Image

I have tried chaning graph templates and data queries to all suggested settings in the searches here but nothing seems to have helped. Is there a trick to this?

Any ideas?

Thanks,
Josh
Josh Scarbrough
JoshS@moahosting.com
www.moahosting.com
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

Go to devices, and click the "create gaphs for this host" for the device in question.

Under the interfaces data query, it should list the Alias that it found. Most Cisco equipment maps this to the "description <desc>" command on the interface. So if you have not issued description commands for your interfaces they won't show up here. If you don't see any Aliases listed, than the query is going to fail, and just show up as "|query_ifAlias|".
Dave
moajosh
Posts: 5
Joined: Wed Jun 22, 2005 1:00 am
Contact:

Post by moajosh »

Hmm interesting, I do not see any of my descriptions in the list yet I know that several of the ports have them. Why would they still not show up?

Also is there a way to get the |query_ifAlias| to not show up if it returns null or blank?
Josh Scarbrough
JoshS@moahosting.com
www.moahosting.com
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

moajosh wrote: Also is there a way to get the |query_ifAlias| to not show up if it returns null or blank?
If it doesn't return valid data, the next title rule is taken from that Data Query (if there is another rule), e.g. to use |query_ifDescr| instead. You may change this to your likings. Parts of this is described in the last link of my signature
Reinhard
moajosh
Posts: 5
Joined: Wed Jun 22, 2005 1:00 am
Contact:

Post by moajosh »

Ah Ok I fixed that now, thanks a ton!

However cacti is still not pulling my switch description and I'm looking at it on the switch via "sh run" and the entries are there.....


Any idea on this one?
Josh Scarbrough
JoshS@moahosting.com
www.moahosting.com
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Find the OIDs cacti is using at ./resources/snmp_queries/interface.xml
Try to snmpwalk them to get an idea what the responses of that target are, really (cacti is not able to use CISCO cli commands, it uses pure SNMP)
Reinhard
moajosh
Posts: 5
Joined: Wed Jun 22, 2005 1:00 am
Contact:

Post by moajosh »

Ah finally figured it out, I had to hit that little green circle, then reassign suggested names and it worked :)
Josh Scarbrough
JoshS@moahosting.com
www.moahosting.com
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest