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

Hernán Berman herber75 at gmail.com
Thu Aug 17 22:55:55 CEST 2017


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 <herber75 at gmail.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20170817/dfab626f/attachment.html>


More information about the Xymon mailing list