Question about hobbitd_rrd
list Tom L. Stewart
All,
I am trying to find out if I change settings hobbitd_rrd.c
From
newrec->key = strdup("");
newrec->defs = (char **)malloc(4 * sizeof(char *));;
newrec->defs[0] = strdup("RRA:AVERAGE:0.5:1:576");
newrec->defs[1] = strdup("RRA:AVERAGE:0.5:6:3456");
newrec->defs[2] = strdup("RRA:AVERAGE:0.5:24:13824");
newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:27648");
newrec->count = 4;
rbtInsert(rrddeftree, newrec->key, newrec);
To
newrec->key = strdup("");
newrec->defs = (char **)malloc(4 * sizeof(char *));;
newrec->defs[0] = strdup("RRA:AVERAGE:0.5:1:576");
newrec->defs[1] = strdup("RRA:AVERAGE:0.5:6:27648");
newrec->defs[2] = strdup("RRA:AVERAGE:0.5:24:27648");
newrec->defs[3] = strdup("RRA:AVERAGE:0.5:288:27648");
newrec->count = 4;
rbtInsert(rrddeftree, newrec->key, newrec);
and recompile.
Does this only affect new created files with xymon or will it start
giving me error messages on the previously created rrd files?
Thank you,
Tom
list Henrik Størner
▸
In <user-3d8c66196f42@xymon.invalid> "Stewart, Tom L." <user-f210f371749e@xymon.invalid> writes:
I am trying to find out if I change settings hobbitd_rrd.c
From
newrec->defs[1] =3D strdup("RRA:AVERAGE:0.5:6:3456");
To
newrec->defs[1] =3D strdup("RRA:AVERAGE:0.5:6:27648");▸
Does this only affect new created files with xymon or will it start giving me error messages on the previously created rrd files?
Only affects the newly created files. rrdtool itself comes with utilities to change the number of datapoints stored for each RRA in existing files. Regards, Henrik