Xymon Mailing List Archive search

Trouble starting ext test to rrd, graph

list Josh Luthman
Fri, 9 Jul 2021 10:13:14 -0400
Message-Id: <user-a31d901c8fce@xymon.invalid>

In case anyone else would like to do this or would appreciate an example (I
know I sure would have :) I wrote this page:

http://ram.iam8up.com/?p=72

Josh Luthman
24/7 Help Desk: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Thu, Jul 8, 2021 at 4:37 PM Josh Luthman <user-4c45a83f15cb@xymon.invalid>
wrote:
Thanks a ton for the help!  It looks like between xymon config and RRD
they're simply truncated and stripped of non alphanumeric characters.
(example:  totalnumqueries_ip_ratelimited) This is in the RRD (:

# rrdtool info unboundstats.rrd
<snip>
ds[totalnumqueries].last_ds = "109"
ds[totalnumqueries].value = 8.4000000000e+00
ds[totalnumqueries].unknown_sec = 0
ds[*totalnumqueriesipra*].index = 1
ds[totalnumqueriesipra].type = "DERIVE"
ds[totalnumqueriesipra].minimal_heartbeat = 600
<snip>

My RRD are actually in /var/lib/xymon/rrd *NOT* /var/lib/xymon/data/rrd so
they were actually being made. I was looking in the wrong place (guide
doesn't match my RPM).

Per the suggestion, I decided to split them using SPLITNCV.  Honestly I
don't see why you wouldn't just do this from the get go, it's so much
easier and better.

[image: image.png]

Josh Luthman
24/7 Help Desk: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Thu, Jul 8, 2021 at 7:11 AM Jeremy Laidman <user-0608abae5e7c@xymon.invalid> wrote:
A couple of things:

* RRD has a DS name length limit of 19 characters, so some of your longer
names (numanswerrcodeSERVFAIL) are going to be truncated or possibly even
cause the whole lot to be rejected. Also, there's a restriction on
characters that can be used: [a-zA-Z0-9_]

* In your webpage output you use numanswerrcodeSERVFAIL but in your NCV_
setting you have numanswerrcode.SERVFAIL (with a dot before SERVFAIL). I
suspect these have to be identical to work. Also, you can't use dots in DS
names as per the last point.

Cheers
Jeremy

On Tue, 6 Jul 2021 at 23:28, Josh Luthman <user-4c45a83f15cb@xymon.invalid>
wrote:
I wrote a script that will pull out a few lines of unbound stats and
that submission appears good.  I've got a green column by the host on the
Xymon server.  The web page is showing this:

totalnumqueries:51
totalnumqueries_ip_ratelimited:0
totalnumcachehits:22
totalnumcachemiss:29
totalrecursiontimeavg:0075215
numquerytcp:0
numquerytcpout:0
numanswerrcodeSERVFAIL:0
unwantedqueries:0
unwantedreplies:0

The part where I'm stuck at is that it won't generate RRD files.  From
the help page it suggests  Ijust add a value to TEST2RRD and NCV_ like I've
done here:

TEST2RRD="<allTheDefaultsHere>,unboundstats=ncv"


NCV_unboundstats="totalnumqueries:GAUGE,totalnumqueries_ip_ratelimited:GAUGE,totalnumcachehits:GAUGE,totalnumcachemiss:GAUGE,totalrecursiontimeavg:GAUGE,numquerytcp:GAUGE,numquerytcpout:GAUGE,numanswerrcode.SERVFAIL:GAUGE,unwantedqueries:GAUGE,unwantedreplies:GAUGE"

Something odd I did notice was that the link to the graphs (which have
no images, no rrd, etc) will say "No DS called 'inodecache' in
'unboundstats.rrd'".  What is the reference to inodecache?

I have restarted it with xymonlaunch on the server.

Now the data/rrd/ directory doesn't contain a host dir, I'm pretty sure
that is something that will be created by Xymon.

Any idea what I'm doing wrong?

Josh Luthman
24/7 Help Desk: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Attachments (1)