precisa de ajuda, posicionando valores em rrdtool

1
DEF:clients=cccam.rrd:kliensek:AVERAGE  
DEF:activeclients=cccam_actclient.rrd:activeclients:AVERAGE  
"LINE1:clients#0000FF:Connected   clients" COMMENT:" \n"  
"LINE2:activeclients#99FF00:Active clients" COMMENT:" \n"  
GPRINT:clients:LAST:'Current'\%5.0lf%s COMMENT:" \n"  
GPRINT:clients:MIN:'Min: '\%5.0lf%s  COMMENT:" \n" 
GPRINT:clients:MAX:"Max:\:%5.0lf%s\n"  
GPRINT:activeclients:LAST:'Current'\%5.0lf%s COMMENT:" \n"  
GPRINT:activeclients:MIN:'Min: '\%5.0lf%s COMMENT:" \n"   
GPRINT:activeclients:MAX:"Max:\:%5.0lf%s\n"  

Como posso colocar valores, desta forma, assim:

link

Número sob números, legenda sob legendas.

    
por user66638 27.01.2011 / 12:50

1 resposta

1

Você precisa definir os espaços relevantes corretamente para alinhar tudo corretamente. Por exemplo:

COMMENT:'     Clients  Connected\n'
COMMENT:'LAST '
GPRINT:clients:LAST:'%8.0lf%s ' 
GPRINT:activeclients:LAST:'%8.0lf%s\n'
COMMENT:'MIN  '
GPRINT:clients:MIN:'%8.0lf%s ' 
GPRINT:activeclients:MIN:'%8.0lf%s\n'
COMMENT:'MAX  '
GPRINT:clients:MAX:'%8.0lf%s ' 
GPRINT:activeclients:MAX:'%8.0lf%s\n'
    
por 09.08.2013 / 05:13

Tags