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    


forum feature request
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Thu Nov 01, 2007 10:03 am    Post subject: forum feature request Reply with quote

Would it be possible to have download links that are wget compatible?
This way I could pull the download directly onto my Cacti servers rather than having to pull it down and then scp or use webmin to push to my servers.

Thanks,

Eric
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Thu Nov 01, 2007 5:21 pm    Post subject: Reply with quote

Eric,

Can you do the research and find a plugin for phpBB that does this?

Larry
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Thu Nov 01, 2007 5:37 pm    Post subject: Reply with quote

I resist installing any additional plugins, because I have to reinstall them every upgrade..
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Thu Nov 01, 2007 5:54 pm    Post subject: Reply with quote

rony wrote:
I resist installing any additional plugins, because I have to reinstall them every upgrade..


Much like we have to do with Cacti, or were you intentionally being ironic?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Thu Nov 01, 2007 6:07 pm    Post subject: Reply with quote

lol Roman's been served
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Thu Nov 01, 2007 6:33 pm    Post subject: Reply with quote

I will check into it and get back to you
Back to top
llow
Cacti User


Joined: 05 Oct 2007
Posts: 88

PostPosted: Fri Nov 02, 2007 7:09 pm    Post subject: Reply with quote

The links are wget compatible. What are you getting when you try and retrieve one?
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Sat Nov 03, 2007 10:12 am    Post subject: Reply with quote

Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Mon Nov 05, 2007 9:55 am    Post subject: Reply with quote

I just tried it again using firefox and putty and it did not work.
It saved the link as download.php?id=10943


basically I am copying the link url and pasting that into the wget command.
Is there a trick I am missing here? The above method works fine on direct path links such as the download links for plugins on cactiusers.org.
I will research further into phpBB as to making this possible.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon Nov 05, 2007 10:37 am    Post subject: Reply with quote

Hi

IMHO it depends on your wget configuration.

On a Gentoo box here's what I get :
Code:
$ wget http://forums.cacti.net/download.php?id=10963
--16:35:32--  http://forums.cacti.net/download.php?id=10963
           => `download.php?id=10963'
Connexion vers 10.200.1.3:8080...connecté.
requête Proxy transmise, en attente de la réponse...200 OK
Longueur: 506,942 (495K) [application/octet-stream]

100%[====================================>] 506,942      333.15K/s

16:35:34 (332.31 KB/s) - « download.php?id=10963 » sauvegardé [506942/506942]

And on a CentOS 5.0 :
Code:
$ wget http://forums.cacti.net/download.php?id=10963
--16:35:18--  http://forums.cacti.net/download.php?id=10963
Connecting to 10.200.1.3:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 506942 (495K) [application/octet-stream]
Saving to: `cactid-0.8.6k.zip'

100%[=================================================================================================>] 506,942      357K/s   in 1.4s

16:35:20 (357 KB/s) - `cactid-0.8.6k.zip' saved [506942/506942]
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Mon Nov 05, 2007 2:47 pm    Post subject: Reply with quote

That clears up a lot. I have always used the default wget config. I will check into it and post my settings once I have some success
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Tue Nov 06, 2007 3:09 am    Post subject: Reply with quote

On a CentOS 4.5, with wget 1.10.2 (package name wget-1.10.2-0.40E), the file is saved as 'download.php?id=10963'

On a CentOS 5.0, with wget 1.10.2 (package name wget-1.10.2-7.el5), the file is saved as 'cactid-0.8.6k.zip'

I've compared quickly /etc/wgetrc on both machines (~/.wgetrc does not exist), and no difference...

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Tue Nov 06, 2007 9:08 am    Post subject: Reply with quote

Aka, build from source and all should be fine

TheWitness
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Tue Nov 06, 2007 9:20 am    Post subject: Reply with quote

fmangeant wrote:
On a CentOS 4.5, with wget 1.10.2 (package name wget-1.10.2-0.40E), the file is saved as 'download.php?id=10963'

On a CentOS 5.0, with wget 1.10.2 (package name wget-1.10.2-7.el5), the file is saved as 'cactid-0.8.6k.zip'

I've compared quickly /etc/wgetrc on both machines (~/.wgetrc does not exist), and no difference...



Interesting... I am using CactiEZ which is based on CentOs.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9723
Location: MI, USA

PostPosted: Tue Nov 06, 2007 9:48 am    Post subject: Reply with quote

It's based upon 4.5 not 5.0. You may be able to install the CentOS 5 RPM, not sure.

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group