Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


A little help

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
neilm



Joined: 03 Sep 2007
Posts: 34

PostPosted: Wed Jul 09, 2008 5:14 am    Post subject: A little help Reply with quote

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

PostPosted: Wed Jul 09, 2008 9:07 am    Post subject: Reply with quote

Such a script is already available in the ./cli directory. Please search
Reinhard
Back to top
neilm



Joined: 03 Sep 2007
Posts: 34

PostPosted: Wed Jul 09, 2008 9:50 am    Post subject: Reply with quote

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

PostPosted: Thu Jul 10, 2008 9:07 am    Post subject: Reply with quote

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

PostPosted: Mon Jul 14, 2008 4:06 am    Post subject: Reply with quote

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

PostPosted: Mon Jul 21, 2008 3:08 am    Post subject: Reply with quote

*bump*
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12186
Location: Muenster, Germany

PostPosted: Mon Aug 11, 2008 2:11 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group