Xymon Mailing List Archive search

[SOLVED...] Fwd: Problem/Bug? in xymon.cgi with FNPATTERN and dynamic ds-name (Again)

1 message in this thread

list Hernán Berman · Thu, 17 Aug 2017 17:55:55 -0300 ·
Hi Everyone, i can fix my problem, but i don´t understand how

In showgraph.c, I changed the line below

    sprintf(resultstr, "%-*s", paramlen, val);

For this

        sprintf(resultstr, "%-*s", strlen(val), val);

Only for information I downloaded and complied the  rrdtool-1.2.30 version.

Bye


---------- Forwarded message ----------
From: Hernán Berman <user-311d08d05198@xymon.invalid>
Date: Tue, May 23, 2017 at 1:21 PM
Subject: Problem/Bug? in xymon.cgi with FNPATTERN and dynamic ds-name
(Again)
To: "xymon at xymon.com" <xymon at xymon.com>


Hi Everyone


I run a new installation of xymon 4.3.28 on a RHEL6.9 and I have problems
whit custom graphs.
The error is: Cannot parse DS in 'DEF:p0=mytest.subline.rrd:subline
:AVERAGE'
I fixed in an older installation following  this old post

          http://lists.xymon.com/oldarchive/2008/07/msg00379.html

But in this version the code it has fixed.
In practice I send 2 values from my custom script, the rdd files are
created fine, but showgraph can’t parse the second value.

I try with this to debug or understand the problem:

I have deleted the rrd file for one of values and the result was the graph
was shown, whit one line, the expected.

I have deleted the second rrd file and recreate the first with the  another
value and the result was the same.

In my opinion there are a problem wiht the "p" value, because  is staying
in "0" for the second value.


Any Idea, or how to fix that?

Thanks
Hernán