<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I need to automatically download .png of 7 day snapshots of certain smokeping graphs to send to a group of concerned parties. I’ve tried two techniques without success:</div>
<div><br>
</div>
<div>1) Download the png using wget</div>
<div><br>
</div>
<div>I learned about setting the displaymode=a and adjusting the start and end URL chunks to get a URL like this:</div>
<div>https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd</div>
<div><br>
</div>
<div>This URL gives me a single graph with the snapshot interval I need. But I can’t figure out how to download the actual graph png. It’s weird because if I put the URL in a browser, right click on the graph and save it manually, it saves a file called smokeping.png
that is the correct graph. But when I try to do the same using wget like this:</div>
<div> `wget -nd -r -l 5 -A png https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd` </div>
<div><br>
</div>
<div>It downloads smokeping.png – but instead of it being a graph, this version is simply the smokeping logo. It also downloads the RRD logo, but no other png files.</div>
<div><br>
</div>
<div>2) Using rrdtool on the rrd files themselves to generate a png of the snapshot I’m looking for on my smokeping server, and then copying it to the web server dir where I can then download it using wget. </div>
<div>Unfortunately I haven’t been able to figure out the correct rrd parameters and DEF, CDEF, AREA..etc. settings to actually generate a smokeping graph.</div>
<div><br>
</div>
<div>If anyone can point me in the right direction with either of the above methods – or share another technique to achieve the same goal, I would be very grateful.</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div>— Daniel Crandall</div>
<div>Savant - DevOps</div>
<div><br>
</div>
</div>
</div>
<br>
<br>
Statement of Confidentiality <br>
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient.
If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this
message and its attachments, if any.
</body>
</html>