[rrd-users] Re: Larger varaible names

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu Jun 28 22:06:40 MEST 2001

kevin.kress at comdev.cc wrote:
> I would like to increase the size of the variable names allowable in the rrd 
> format to about 256 characters.  I have found what I think is the location of
> the #defines that will increase the size of the variable names.  Before I 
> proceed I was hoping I could get some opinions on what problems this might 
> or if it will even work.  

One problem is that the defines are not always used (while they should).

Basically you will have to review the code (shouldn't be that hard) for
locations where anyting happens with DSes.  While you're at it you may
as well provide a patch (please).

Every part of the program is in its own file so you need to scan allmost
all of the .c files.

> #define DS_NAM_FMT    "%19[a-zA-Z0-9_-]"
> #define DS_NAM_SIZE   20

Change 20 and 19 into 256 and 255 (255 chars allowed).  I don't know
if you'll hit some limitation elsewhere, I do know you need to change
both numbers.

> #define DST_FMT    "%19[A-Z]"
> #define DST_SIZE   20

This should need no change.  It is the data source type i.e. AVERAGE, GAUGE.

 / 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 |
| Technical questions sent directly to me will be nuked. Use the list. | 
| 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