[rrd-users] Re: Wanting an error instead of an "empty" graph

Serge Maandag serge.maandag at staff.zeelandnet.nl
Tue Feb 24 16:49:16 MET 2004


> I've noticed that if the RRD does not contain any data for the span 
> requested, a graph will still be generated, but with no data (of 
> course.)

I'm glad it does.

> I'm wondering if it is somehow possible to have RRDs::graph 
> NOT create a graph, but instead, set RRDs::error

That would require a source hack, I think.

> I could do an RRDs::last on each RRD and check to see if it falls 
> within the span, but I'd rather not have to do the extra 
> operation if I can avoid it.

rrds::last wouldn't help you. I think you are looking for some kind of
rrds::first. You could do something like 
rrdtool fetch | grep -v nan | head -1 | etcetera to fetch the first
value.

Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list