[rrd-users] Graphing two separate graphs from a DB

Paul Halliday paul.halliday at gmail.com
Wed Dec 11 17:41:07 CET 2013


I put together something similar to this a while ago. This might help you:

http://www.pintumbler.org/Code/Pings

On Wed, Dec 11, 2013 at 12:20 PM, er ic <email.eherr9633 at gmail.com> wrote:
> Similar to MRTG, I would like to have a graph for 24 hour and a separate
> graph for 1 week.
>
> I am pinging a host and graphing the latency.
>
> I have an RRD called host-latency-db.rrd
>
> I had two RRAs set up with 24 hours and 7 days but it is my understanding
> the graph tool picks either/or depending on the data. I dont believe I can
> graph off each RRA
>
> Simply put, I want to ping a host, store the data and graph 2 separate
> graphs with 24 hours and 7 days without having to ping it twice.
>
> The only way I can thing to do this is after my get_data() command that
> pings it, I run the following command
>
> $rrdtool update host-latency_db.rrd --template pl:rtt N:$RETURN_DATA
>
> I am assuming I will need two databases to store the information, 1 for a
> day and 1 for an hour.
>
> Then on my create graph script, I will have to have two rrdtool graph calls,
> one on each DB, and create two separate graphs.
>
> I was hoping there is a cleaner way or if I need two DBs and two graph
> calls.
>
> Thanks,
> --Eric
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>



-- 
Paul Halliday
http://www.pintumbler.org/



More information about the rrd-users mailing list