![]() |
![]() |
Subject: | Get/download graphics by wget/curl |
Author: | [Not Specified] |
Posted: | 2016-02-28 09:41 |
Hi,
I'm trying to get a picture of interfaces graphics by curl or wget for my remote script. i have aseveral versions: save or download image, write image to file.I was trying to save the address of the link to the graph and start the command -wget 'http://xx:xx@xxxx:8080/zport/RenderServer/renderwidth=500&gopts=.....many symbols.... -O graph.png,but it doesn't works.
Does anyone have any ideas how to get / download the picture
Subject: | this sounds like 4.x. The |
Author: | Andrew Kirch |
Posted: | 2016-03-09 20:08 |
this sounds like 4.x. The links do work but you have to login first, which I believe requires some additional wget magic to log into the site. You're also going to have to use quotes on the URL as it contains ampersands ("&"), and other characters parsed by BASH. You are also likely going to need cURL rather than wget.
There are quite a few examples out there of session authentication with curl, I haven't set it up in awhile, it's a pain, buthttp://wordpress.stackexchange.com/questions/36452/creating-login-session-via-curl looks like a good start.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
< |
Previous SSH Monitoring and Fedora 23 |
Next Zenoss 5 - 95th Percentile on network graphs |
> |