[rrd-users] Re: GPRINT format

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Thu Jul 6 11:27:09 MEST 2000


Olivier Lemarchand wrote:
> 
> What I want to have :
> 
> value_1      : 20.5   Max :  30.0   Min : 5.3
> second_value :  100   Max : 256.8   Min : 1.0
> 
> What I have today :
> 
> value_1 : 20.5  Max : 30.0  Min : 5.3
> second_value : 100  Max : 256.8 Min : 1.0
> 
> Does someone know which format character I have to use...?

Space? :)

Seriously,
LINE1:value_1#ff0000:"Value 1      "     <--- label has spaces
gprint:value_1:AVERAGE:"%6.1lf"          <--- 6 total chars, 4.1 format
gprint:value_1:MAX:"Max :%6.1lf"
gprint:value_1:MIN:"Min :%6.1lf"
LINE1:value_2#ff0000:"second value "
gprint:value_2:AVERAGE:"%6.0lf"          <--- 5.0 format, you asked for it
gprint:value_2:MAX:"Max :%6.1lf"
gprint:value_2:MIN:"Min :%6.1lf"

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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