[smokeping-users] Automatically download fresh .png snapshot.
Gregory Sloop
gregs at sloop.net
Wed Mar 23 20:17:32 CET 2016
I doubt you're going to get better than that thread.
I've never had need to do that - but it would certainly be interesting if, once you've figured it out, if you'd return your findings to the list. I can certainly see myself [and others] needing such an option at some point.
Someone a while back [years ago] gave a script to do an MTR and I tweaked that some to grab MTR's and email them when certain conditions occur. [It's pretty valuable when you want to beat up, Comcast, for example for having a terrible path. The ISP can't wiggle, claiming the loss is occurring somewhere outside their control when you drop the MTR on them showing the losses are occurring in their network.] Anyway - having someone put that back into the mix was really helpful, saving me quite a lot of time having to re-create their work.
So, if you'd do the same on your graphing issue, that would save someone the trial-and-error you're suffering.
-Greg
Thanks Greg,
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.
If anybody has an example of the actual smokeping rrdgraph options and args, that would really help.
— Daniel Crandall
Savant - DevOps
From: Gregory Sloop <gregs at sloop.net>
Reply-To: Greg Sloop <gregs at sloop.net>
Date: Wednesday, March 23, 2016 at 11:40 AM
To: Daniel Crandall <daniel.crandall at savant.com>, Douglas Spindler <doug.spindler at gmail.com>, "smokeping-users at lists.oetiker.ch" <smokeping-users at lists.oetiker.ch>
Subject: Re: [smokeping-users] Automatically download fresh .png snapshot.
Re: [smokeping-users] Automatically download fresh .png snapshot.
This thread might help.
https://www.mail-archive.com/smokeping-users%40lists.oetiker.ch/msg04777.html
-Greg
That’s actually exactly what I’m trying to avoid. ;)
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.
— Daniel Crandall
Savant - DevOps
From: Douglas Spindler <doug.spindler at gmail.com>
Date: Wednesday, March 23, 2016 at 11:09 AM
To: Daniel Crandall <daniel.crandall at savant.com>, "smokeping-users at lists.oetiker.ch" <smokeping-users at lists.oetiker.ch>
Subject: RE: [smokeping-users] Automatically download fresh .png snapshot.
Can’t you just take a screenshot?
From: smokeping-users [mailto:smokeping-users-bounces+doug.spindler=gmail.com at lists.oetiker.ch] On Behalf Of Daniel Crandall
Sent: Wednesday, March 23, 2016 10:32 AM
To: smokeping-users at lists.oetiker.ch
Subject: [smokeping-users] Automatically download fresh .png snapshot.
Hi,
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:
1) Download the png using wget
I learned about setting the displaymode=a and adjusting the start and end URL chunks to get a URL like this:
https://smokeping.oursite.com/smokeping/smokeping.cgi?displaymode=a;start=now-7day;end=now;target=OurServers.HTTPSLatency.prd
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:
`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`
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.
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.
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.
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.
Thanks!
— Daniel Crandall
Savant - DevOps
Statement of Confidentiality
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.
Statement of Confidentiality
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.
--
Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: gregs at sloop.net
http://www.sloop.net
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20160323/e6103828/attachment.html>
More information about the smokeping-users
mailing list