<div dir="ltr"><div><div><div>Hi everyone,<br><br></div>I think I may have identified a possible bug in xymon. I am currently running 4.3.12.<br><br></div>I am attempting to define a custom graph using the RRDPARAM variable to define the graph. The data that is "supplying" the graph is being generated by a custom check and it stores this data over several rrd files with a single value in each file.<br>
<br></div><div>They key line in my graph definition is:<br><br></div><div>DEF:p@RRDIDX@=@RRDFN@:@RRDPARAM@:AVERAGE<br><br></div><div>What appears to be happening is that the different variables names that represent the different parameters for the graph are different lengths. It seems that what ends up being supplied to rdd on this line in the graph definition contains extra white space added into the @RRDPARAM@ part of the definition line and that these extra whitespaces correspond to the largest variable name length. It seems to me that the internal data structure is getting sized to the largest string length and then not reduced for subsequent smaller strings and it just pads the rest with whitespace. RRD then gets confused as it is looking for a variable named "variable1  ", while the rrd file actually contains a variable called "variable1".<br>
<br></div><div>I would love to get the bug fixed as it is preventing some of my graphs working. Happy to also be told there is a better way to do this. I hope this makes sense. Happy to provide more info if required.<br><br>
</div><div>Alex<br></div></div>