<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>
<div>
<div>Thanks Greg,  </div>
<div><br>
</div>
<div>I’ve read that thread, and have been experimenting with rrdgraph.  The problem I've run into is figuring out the correct options, data definitions, calc data, and graphic elements needed to generate the standard smokeping graph.  I think that would work
 if I could sort all that out.  I got as much as I could from other rrd examples and combing through the Graph.pm module in Smokeping, but no joy yet.</div>
<div><br>
</div>
<div>If anybody has an example of the actual smokeping rrdgraph options and args, that would really help.  </div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div>— Daniel Crandall</div>
<div>Savant - DevOps</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Gregory Sloop <<a href="mailto:gregs@sloop.net">gregs@sloop.net</a>><br>
<span style="font-weight:bold">Reply-To: </span>Greg Sloop <<a href="mailto:gregs@sloop.net">gregs@sloop.net</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, March 23, 2016 at 11:40 AM<br>
<span style="font-weight:bold">To: </span>Daniel Crandall <<a href="mailto:daniel.crandall@savant.com">daniel.crandall@savant.com</a>>, Douglas Spindler <<a href="mailto:doug.spindler@gmail.com">doug.spindler@gmail.com</a>>, "<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>"
 <<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [smokeping-users] Automatically download fresh .png snapshot.<br>
</div>
<div><br>
</div>
<div>
<title>Re: [smokeping-users] Automatically download fresh .png snapshot.</title>
<div><span style=" font-family:'Courier New'; font-size: 9pt;">This thread might help.<br>
<br>
</span><a style=" font-family:'Courier New'; font-size: 9pt;" href="https://www.mail-archive.com/smokeping-users%40lists.oetiker.ch/msg04777.html">https://www.mail-archive.com/smokeping-users%40lists.oetiker.ch/msg04777.html</a><br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">-Greg<br>
<br>
<a name="MAC_OUTLOOK_SIGNATURE"></a></span>
<table>
<tbody>
<tr>
<td width="3" bgcolor="#0000ff"><br>
</td>
<td><span style=" font-family:'calibri'; font-size: 11pt;">That’s actually exactly what I’m trying to avoid. ;)  <br>
The keyword is automation.  I need to script this so that I can present static, 7 day graphs to people outside my dept – without having to spend time manually taking screenshots of each graph.<br>
<br>
— Daniel Crandall<br>
Savant - DevOps<br>
<br>
<br>
<span style=" font-size: 12pt;"><b>From: </b>Douglas Spindler <</span></span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:doug.spindler@gmail.com">doug.spindler@gmail.com</a><span style=" font-family:'calibri'; font-size: 12pt;">><br>
<b>Date: </b>Wednesday, March 23, 2016 at 11:09 AM<br>
<b>To: </b>Daniel Crandall <</span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:daniel.crandall@savant.com">daniel.crandall@savant.com</a><span style=" font-family:'calibri'; font-size: 12pt;">>, "</span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><span style=" font-family:'calibri'; font-size: 12pt;">"
 <</span><a style=" font-family:'calibri'; font-size: 12pt;" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><span style=" font-family:'calibri'; font-size: 12pt;">><br>
<b>Subject: </b>RE: [smokeping-users] Automatically download fresh .png snapshot.<br>
</span></td>
</tr>
</tbody>
</table>
<span style=" font-family:'times new roman'; font-size: 11pt;">Can’t you just take a screenshot?
<br>
<br>
<b>From:</b> smokeping-users [</span><a style=" color: #0563c1; font-family:'times new roman'; font-size: 11pt;" href="mailto:smokeping-users-bounces+doug.spindler=gmail.com@lists.oetiker.ch">mailto:smokeping-users-bounces+doug.spindler=gmail.com@lists.oetiker.ch</a><span style=" font-family:'times new roman'; font-size: 11pt;">]
<b>On Behalf Of </b>Daniel Crandall<br>
<b>Sent:</b> Wednesday, March 23, 2016 10:32 AM<br>
<b>To: </b></span><a style=" color: #0563c1; font-family:'times new roman'; font-size: 11pt;" href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<span style=" font-family:'times new roman'; font-size: 11pt;"><b>Subject:</b> [smokeping-users] Automatically download fresh .png snapshot.<br>
<br>
Hi,<br>
<br>
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:<br>
<br>
1)  Download the png using wget<br>
<br>
I learned about setting the displaymode=a and adjusting the start and end URL chunks to get a URL like this:<br>
</span><a style=" color: #0563c1; font-family:'times new roman'; font-size: 11pt;" href="https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd">https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd</a><br>
<br>
<span style=" font-family:'times new roman'; font-size: 11pt;">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:<br>
`wget -nd -r -l 5 -A png </span><a style=" color: #0563c1; font-family:'times new roman'; font-size: 11pt;" href="https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd%60">https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd`</a><br>
<br>
<span style=" font-family:'times new roman'; font-size: 11pt;">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.<br>
<br>
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.  <br>
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.<br>
<br>
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.<br>
<br>
Thanks!<br>
<br>
— Daniel Crandall<br>
Savant - DevOps<br>
<br>
</span><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. </div>
</div>
</span><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>