How to add ifAlias to graphs

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

Moderators: Developers, Moderators

Post Reply
jwashburn
Posts: 33
Joined: Fri Jun 09, 2006 12:56 pm

How to add ifAlias to graphs

Post by jwashburn »

I do a verbose query from Devices

+ 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=''] index: 5 [from value]
+ Found item [ifAlias=''] index: 6 [from value]
+ Found item [ifAlias=''] index: 7 [from value]
+ Found item [ifAlias=''] index: 8 [from value]
+ Found item [ifAlias=''] index: 9 [from value]
+ Found item [ifAlias=''] index: 10 [from value]
+ Found item [ifAlias=''] index: 11 [from value]
+ Found item [ifAlias=''] index: 12 [from value]
+ Found item [ifAlias=''] index: 13 [from value]
+ Found item [ifAlias='SERVERA Primary NIC Speed 100-Full PORTFAST'] index: 14 [from value]
+ Found item [ifAlias=''] index: 15 [from value]

Notice that there is an Alias listed.

If you look at the attached file you can see how I have the Data Query setup.

I have also attached the graph output

What am I missing
Attachments
cacti2.jpg
cacti2.jpg (33.21 KiB) Viewed 7118 times
cacti.jpg
cacti.jpg (140.43 KiB) Viewed 7119 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you tried "Reapplying Suggested" names to the graphs in question from the Graph Management page?
[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]
angeraer
Posts: 1
Joined: Tue Feb 13, 2007 5:26 am

Automate reapply suggested names?

Post by angeraer »

Is there no way to automate this?
I monitor a few hundred ports on switches in a datacenter. The alias field on the switch is used to keep track of the customer patched on the port. These fields change on a daily base so it would be very handy to have some kind of feature like this.

Thanks,

Andy.
fifsource
Posts: 3
Joined: Tue Feb 13, 2007 6:25 am

Post by fifsource »

I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:

Code: Select all

COMMENT: Alias: |ifAlias|
in the graph template.
This does not seem to work either...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Automate reapply suggested names?

Post by gandalf »

angeraer wrote:Is there no way to automate this?
There's a php script in the main directory to do so (poller_reindex_hosts.php). But it's VERY time consuming. You may run it on a per host basis
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

fifsource wrote:I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:

Code: Select all

COMMENT: Alias: |ifAlias|
in the graph template.
This does not seem to work either...
Please try using |query_ifAlias|
Reinhard
fifsource
Posts: 3
Joined: Tue Feb 13, 2007 6:25 am

Post by fifsource »

gandalf wrote:
fifsource wrote:I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:

Code: Select all

COMMENT: Alias: |ifAlias|
in the graph template.
This does not seem to work either...
Please try using |query_ifAlias|
Reinhard
Doesn't work either.
jwashburn
Posts: 33
Joined: Fri Jun 09, 2006 12:56 pm

Post by jwashburn »

What wierd is its working sometimes. My vlan descriptions seem to show up pn the graphs, but not port descriptions
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check the snmpwalk results for those indices.
Reinhard
nduda78
Cacti User
Posts: 111
Joined: Tue Mar 01, 2005 11:26 am

Re: Automate reapply suggested names?

Post by nduda78 »

gandalf wrote:
angeraer wrote:Is there no way to automate this?
There's a php script in the main directory to do so (poller_reindex_hosts.php). But it's VERY time consuming. You may run it on a per host basis
Reinhard
How can I set this to run? I want to have it rerun these per host also.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

php -q poller_reindex_hosts.php -h
Cacti Reindex Host Script 1.0, Copyright 2005 - The Cacti Group

usage: poller_reindex_hosts.php -id=[host_id|All] [-d] [-h] [--help] [-v] [--version]

-id=host_id - The host_id to have data queries reindexed or 'All' to reindex all hosts
-d - Display verbose output during execution
-v --version - Display this help message
-h --help - Display this help message
Reinhard
nduda78
Cacti User
Posts: 111
Joined: Tue Mar 01, 2005 11:26 am

Post by nduda78 »

gandalf wrote:
php -q poller_reindex_hosts.php -h
Cacti Reindex Host Script 1.0, Copyright 2005 - The Cacti Group

usage: poller_reindex_hosts.php -id=[host_id|All] [-d] [-h] [--help] [-v] [--version]

-id=host_id - The host_id to have data queries reindexed or 'All' to reindex all hosts
-d - Display verbose output during execution
-v --version - Display this help message
-h --help - Display this help message
Reinhard
Nice, I will slap this into cron. Thanks !
uno
Posts: 32
Joined: Mon Aug 27, 2007 7:22 am

Post by uno »

When I use "Reapply suggested names" from graph management, the "|query_ifAlias|" is just removed from the graph title, nothing else happens. Do I need a newer version than 0.8.6c for this?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

uno wrote:Do I need a newer version than 0.8.6c for this?
To be honest, I don't know. This is quite old and I cannot remember, when and how this feature dropped in.
Reinhard
uno
Posts: 32
Joined: Mon Aug 27, 2007 7:22 am

Post by uno »

Ok, I will probably stop using the .deb package for Sarge and go for the .tar.gz instead.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest