How to add ifAlias to graphs
Moderators: Developers, Moderators
How to add ifAlias to graphs
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
+ 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 (33.21 KiB) Viewed 7122 times
-
- cacti.jpg (140.43 KiB) Viewed 7123 times
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
Automate reapply suggested names?
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.
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.
I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:
in the graph template.
This does not seem to work either...
Something like:
Code: Select all
COMMENT: Alias: |ifAlias|
This does not seem to work either...
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Automate reapply suggested names?
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 basisangeraer wrote:Is there no way to automate this?
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please try using |query_ifAlias|fifsource wrote:I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:in the graph template.Code: Select all
COMMENT: Alias: |ifAlias|
This does not seem to work either...
Reinhard
Doesn't work either.gandalf wrote:Please try using |query_ifAlias|fifsource wrote:I was wondering if the ifAlias could not be displayed in the graph's legend, instead of the title.
Something like:in the graph template.Code: Select all
COMMENT: Alias: |ifAlias|
This does not seem to work either...
Reinhard
Re: Automate reapply suggested names?
How can I set this to run? I want to have it rerun these per host also.gandalf wrote: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 basisangeraer wrote:Is there no way to automate this?
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Reinhardphp -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
Nice, I will slap this into cron. Thanks !gandalf wrote:Reinhardphp -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
Who is online
Users browsing this forum: No registered users and 0 guests