[Xymon] Possible xymon bug - use of RRDPARAM in custom graphs

Alex Krumm-Heller ozkrumpet at gmail.com
Wed Jan 8 12:06:49 CET 2014


Hi everyone,

I think I may have identified a possible bug in xymon. I am currently
running 4.3.12.

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.

They key line in my graph definition is:

DEF:p at RRDIDX@=@RRDFN@:@RRDPARAM@:AVERAGE

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".

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.

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140108/adbee760/attachment.html>


More information about the Xymon mailing list