|
|
| Author |
Message |
neilm
Joined: 03 Sep 2007 Posts: 34
|
Posted: Wed Jul 09, 2008 5:14 am Post subject: A little help |
|
|
Hello,
I am writing a perl script which refreshes the ports of hosts so and changes in description or alike are automatically picked up. So far i connect to the database and extract the host id's I was then going to run the host.php from the command line with ?action=query_reload&id=1&host_id= @aray[i] however this fails because you have to authenticate is there anyway I can achieve my goal?
thanks in advance |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Wed Jul 09, 2008 9:07 am Post subject: |
|
|
Such a script is already available in the ./cli directory. Please search
Reinhard |
|
| Back to top |
|
 |
neilm
Joined: 03 Sep 2007 Posts: 34
|
Posted: Wed Jul 09, 2008 9:50 am Post subject: |
|
|
Hi Reinhard,
Thanks for you reply would that be the poller_graphs_reapply_names.php script I have tried that with -id=all without success do I have to supply a -s flag and if so what string shall I use as I have tried using Interface and Interface - (bit in/out with 95th percentile ) both to no avail
Cheers, |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Thu Jul 10, 2008 9:07 am Post subject: |
|
|
Do you want to provide a title or do you want to make cacti
- re-read interface related data (e.g. ifAlias, ifDescription ...)
- re-build graph title based on step 1
Reinhard |
|
| Back to top |
|
 |
neilm
Joined: 03 Sep 2007 Posts: 34
|
Posted: Mon Jul 14, 2008 4:06 am Post subject: |
|
|
| I would like to get cacti to re-read interface related data (e.g. ifAlias, ifDescription ...) |
|
| Back to top |
|
 |
neilm
Joined: 03 Sep 2007 Posts: 34
|
Posted: Mon Jul 21, 2008 3:08 am Post subject: |
|
|
| *bump* |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12186 Location: Muenster, Germany
|
Posted: Mon Aug 11, 2008 2:11 pm Post subject: |
|
|
Please use poller_reindex_hosts.php for selected hosts or click the green circle manually. You may want to change the re-index method to make it more automatic
Reinhard |
|
| Back to top |
|
 |
|