[SOLVED] not showing updated switch port names (ifAlias)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
crazyivan
Posts: 3
Joined: Fri Jul 30, 2010 2:59 am

[SOLVED] not showing updated switch port names (ifAlias)

Post by crazyivan »

Crew,

Situation:
Recently I've changed descriptions of a few interfaces on one of our Cisco access switches. These changes show up just fine in Cacti after requesting a 'Verbose Query' in the 'debugging' section of 'Associated Data Queries' (Console > Devices).

Graph name: |host_description| |query_ifName| |query_ifAlias|
Example: incite04 Gi0/20 MAM



Problem:
When I want to add a 'link' in WeatherMap between our core and this access switch the changes in the names of the interfaces do NOT show. And I'm stuck with 24 interfaces without a name.

What I tried:
php poller_reindex_hosts.php --id=ALL
php poller_graphs_reapply_names.php -id=All


Question:
Does anyone know how I can sync. those interface names? Cacti refers to this field as 'query_ifAlias'.
Could the '/' in the 'query_ifName' cause an escaping issue in WheaterMaps?
Any other suggestions?

Specs:
Linux Debian 2.6.26-2-amd64
Apache/2.2.9
MYSQL Ver 14.12 Distrib 5.0.51a
PHP 5.2.6-1+lenny8 with Suhosin-Patch 0.9.6.2
Cacti 0.8.7g
MacTrack 2.6-1
Weathermap v0.97a

[edit]added some text for clarification [/edit]
Last edited by crazyivan on Sun Aug 29, 2010 4:45 pm, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

What does this look like in your Weathermap map config? Please post an example node/link that has this problem. There are several ways to implement this...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
crazyivan
Posts: 3
Joined: Fri Jul 30, 2010 2:59 am

Post by crazyivan »

[shame on me] Issue solved, forgot to update my post [/shame on me]

The trick is to update the data sources, not just the graphs. You can do this using the command line. I've made a cron job that does this hourly. Good enough for me. Other questions welcome.
crazyivan
Posts: 3
Joined: Fri Jul 30, 2010 2:59 am

Re: [SOLVED] not showing updated switch port names (ifAlias)

Post by crazyivan »

Beter late than never: Someone PMed me and asked what commands I used to solve this issue. I've used a combination of these commands:

Code: Select all

#Reindex Hosts
/usr/bin/php /var/www/cacti-x.x.x/cli/poller_reindex_hosts.php -id=All

#Reapply Data Source Names
/usr/bin/php /var/www/cacti-x.x.x/cli/poller_data_sources_reapply_names.php -id=All

#Reapply Graphs Names
/usr/bin/php /var/www/cacti-x.x.x/cli/poller_graphs_reapply_names.php -id=All
These commands are located in the cli directory. You might want to consult the manual for these commands first!
You can read the short versions using the switch --help. e.g.

Code: Select all

/usr/bin/php /var/www/cacti-x.x.x/cli/poller_reindex_hosts.php --help 
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests