[smokeping-users] RRD Command for generating Smokeping graphs via CLI
Borg, Joe, Vodafone Malta
Joe.Borg at vodafone.com
Fri Jul 13 09:17:35 CEST 2012
Hi Ryan,
It needs to be flexible I'm afraid as these would be per client/customer graphs.
Thanks,
Joe
From: Ryan Becker [mailto:rb14060 at gmail.com]
Sent: 13 July 2012 09:10
To: Borg, Joe, Vodafone Malta
Cc: Don Gould; smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] RRD Command for generating Smokeping graphs via CLI
Here's a question - Do the graph titles need to be flexible (not just one modification) or can it be static (IE not Navigator Graph bot something else that stays the same all the time)? Knowing this I might be able to dig into code a bit and see if I can't find something that would allow it to be modified.
On Fri, Jul 13, 2012 at 2:47 AM, Borg, Joe, Vodafone Malta <Joe.Borg at vodafone.com<mailto:Joe.Borg at vodafone.com>> wrote:
Hi Don,
Many thanks for your response and no worries re: being blunt.
Essentially, you are right - only that the only custom item I require is the title. In other words, the legend and everything else on the graph should remain the same as what's seen in smokeping. Moreover though, I also need to 'automate' this graph generation via CLI/ a perl script.
So to do the above, I thought the best way would be to use the rrdtool directly from CLI; something like:
/usr/bin/rrdtool graph - --imgformat=PNG --start=-31536000 --end=-300 --title="customer abc instead of Navigator Graph"................
What I was after was simply the list of all the parameters I might need to pass to rrdtool so as to generate a graph that looks exactly like the ones generated by smokeping (only with a different title).
I'll go through the links you provided me with as the second one seems promising.
The alternative to all the above would be to run something like this from a linux CLI:
[root at foo /]# wget " http://oss.oetiker.ch/smokeping-demo/?displaymode=a;start=2007-08-15%2015:31;end=now;target=Customers.ITIS.otoro"
The above is also fine for me and would be much simpler. The only problem with it is that I don't know if/how I could modify the graph title of the png file generated? Maybe there's some other url parameter I can pass? E.g. ?displaymode=a;start=2007-08-15%2015:31;end=now;target=Customers.ITIS.otoro;title=customer.abc (<-note added parameter).
Thanks for all your help.
Joe
-------------------------------------------------------------------------------------
Vodafone
-------------------------------------------------------------------------------------
This email is intended only for the use of individuals to whom it is addressed, as it may contain confidential or privileged information. If you are not a named addressee, intended recipient, or the person responsible for delivering the message to the named addressee, be advised that you have received this email in error and that you should not disseminate, distribute, print, copy this mail or otherwise divulge its contents. In such instances, please notify Vodafone Malta Limited on telephone number +356 99999247 and delete this email from your system. Since this transmission was affected via email, Vodafone Malta Limited cannot guarantee that it is secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Vodafone Malta Limited does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission.
Save the environment for our children - Print e-mail only when necessary.
305 at bowenvale.co.nz> <8EE68463DAC6324598519558F66369150C4B4CBB at VOEXM17W.internal.vodafone.com> <CAAjykhaLXy53tY_00+pw1EqGnqKG4BK=jO8rwnV9pETqAK=Prg at mail.gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20120713/117bda72/attachment.htm
More information about the smokeping-users
mailing list