I noticed a problem with the fetch command when your RRDs have Data
Sources with names longer than 14 characters, even though the
documentation allows for names up to 19 characters long.  You end up
getting output that looks like:
               ifInOctets   ifOutOctets ifInUcastPktsifOutUcastPkts

There should be a space between ifInUcastPkts and ifOutUcastPkts.  The
patch below fixes the problem.


*** src/rrd_tool.c      Fri Dec  7 10:49:39 2001
--- src/rrd_tool.c.orig Fri Dec  7 10:47:19 2001
***************
*** 321,327 ****
            datai=data;
            printf("           ");
            for (i = 0; i<ds_cnt;i++)
!               printf(" %19s",ds_namv[i]);
            printf ("\n\n");
            for (i = start; i <= end; i += step){
                printf("%10lu:", i);
--- 321,327 ----
            datai=data;
            printf("           ");
            for (i = 0; i<ds_cnt;i++)
!               printf("%14s",ds_namv[i]);
            printf ("\n\n");
            for (i = start; i <= end; i += step){
                printf("%10lu:", i);
---



=======================================================================
Stephen Fromm                                 Phone:  541.346.1712
NERO Operations & Systems Engineer            Email:  [EMAIL PROTECTED]
UO Computing Center
1225 Kincaid
Eugene, OR 97403
Public key: http://network-services.uoregon.edu/~stephenf/stephenf.asc

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to