Xymon Mailing List Archive search

RRD Duplicate DS Name

4 messages in this thread

list Phil Meech · Tue, 10 Jul 2012 10:10:23 +0100 ·
Hi,

I'm trying to create a graph from a custom test which monitors quota
usage on an FTP server.  The message sent to Xymon is as follows:

qused: 21
qassign: 100

Quota Assigned: 100 MB
Quota Used: 21 MB
Quota Available: 79 MB

Percentage Used: 21.00 %

-rw-r--r--   1 name ftpgroup  4747651 Feb 23 10:31 File-2012-02-23
10;30;45 (Full).zip
-rw-r--r--   1 name ftpgroup   278953 Feb 24 08:50 File-2012-02-24
08;50;14 (Differential).zip
-rw-r--r--   1 name ftpgroup  1052106 Feb 25 08:50 File-2012-02-25
08;50;13 (Differential).zip


Since the message includes ls output, this appears to be causing a
problem when generating the rrd file - since rrd-status is logging
errors like:

RRD error creating /var/lib/xymon/rrd/name/quota.rrd: Duplicate DS
name: rwrr1nameftpgro

As can be seen it's parsing the ls output as a DS name, however this
is not specified in my graphs setup (which follows):

xymonserver.cfg
TEST2RRD="....,quota=ncv"
GRAPHS="....,quota"
NCV_quota="qused:GAUGE,qassign:GAUGE"

graphs.cfg
[quota]
        TITLE FTP Quota Usage
        YAXIS Megabytes
        DEF:allowance=quota.rrd:qassign:AVERAGE
        DEF:usage=quota.rrd:qused:AVERAGE
        LINE2:usage#76B287:Usage
        AREA:allowance#CA1C2C:Allowance
        COMMENT:\n

I think my graph setup is OK, since I've copied it from another custom
graph which is working.

I'm running xymon 4.3.7 and rrdtool version 1.4.7 on Ubuntu.

Is my only option to strip the ls output down to just the unique filenames?

Cheers,
Phil
list Henrik Størner · Sat, 14 Jul 2012 12:10:34 +0200 ·
On 10-07-2012 11:10, Phil Meech wrote:
RRD error creating /var/lib/xymon/rrd/name/quota.rrd: Duplicate DS
name: rwrr1nameftpgro
DS names are limited to 19 characters by the rrdtool library. Nothing 
Xymon can do about that, I'm afraid.


Regards,
Henrik
list Dirk Winning · Thu, 17 Apr 2014 11:46:27 +0200 ·
Hi Phil,
may I refer to your xymon-question from some years back:-)
http://lists.xymon.com/archive/2012-July/035049.html

I think that the answer from Hendrik was very weak, in that respect that I do not regard it as an answer at all; what did you think?

What I found when running into the same issue was, that the output given to xymon has to start with a newline!
After I added a newline at the top of the output the trigger-string was found and hence the graph appeared.

Did you have similar solutions?

Thanks
greets

Dipl. Ing. Dirk Winning, Systemberater
user-c48f12843a9b@xymon.invalid

junidas GmbH, Aixheimer Str. 12, 70619 Stuttgart
Tel. +49 (711) 4599799-12
Geschäftsführer: Dr. Markus Stoll, Matthias Zepf
Amtsgericht Stuttgart, HRB 21939
list Jeremy Laidman · Tue, 29 Apr 2014 13:30:54 +1000 ·
I think you're right.  I think Henrik assumed that the problem was with DS
names being too long - as this is the most common reason for the "duplicate
DS name" error.  It seems the colons in the "ls" output are being parsed as
if they are part of a string of the form 'P:Q".

The real answer, as I understand, is that NCV messages are not intended to
show text, only the NCV lines.  However, according to the code, if you send
the string "@@" on a line by itself, the rest of the messages is ignored by
the parsing code.

Also, regarding the required newline, yes the example NCV code includes a
newline before the NCV lines.

J


On 17 April 2014 19:46, Dirk Winning, junidas GmbH
quoted from Dirk Winning
<user-c48f12843a9b@xymon.invalid>wrote:
Hi Phil,
may I refer to your xymon-question from some years back:-)
http://lists.xymon.com/archive/2012-July/035049.html

I think that the answer from Hendrik was very weak, in that respect that I
do not regard it as an answer at all; what did you think?

What I found when running into the same issue was, that the output given
to xymon has to start with a newline!
After I added a newline at the top of the output the trigger-string was
found and hence the graph appeared.

Did you have similar solutions?

Thanks
greets

Dipl. Ing. Dirk Winning, Systemberater
user-c48f12843a9b@xymon.invalid

junidas GmbH, Aixheimer Str. 12, 70619 Stuttgart
Tel. +49 (711) 4599799-12
Geschäftsführer: Dr. Markus Stoll, Matthias Zepf
Amtsgericht Stuttgart, HRB 21939