[Xymon] Trouble starting ext test to rrd, graph
Fabian Wendlandt
fabian.wendlandt at innowerk-it.de
Tue Jul 6 19:02:18 CEST 2021
Hi Josh,
> 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 guess you took the graph definition from this guide (https://xymon.sourceforge.io/xymon/help/howtograph.html)?
[slab]
TITLE Slab info
YAXIS Bytes
DEF:inode=slab.rrd:inodecache:AVERAGE
DEF:dentry=slab.rrd:dentrycache:AVERAGE
LINE2:inode#00CCCC:Inode cache
LINE2:dentry#FF0000:Dentry cache
COMMENT:\n
GPRINT:inode:LAST:Inode cache \: %5.1lf%s (cur)
GPRINT:inode:MAX: \: %5.1lf%s (max)
GPRINT:inode:MIN: \: %5.1lf%s (min)
GPRINT:inode:AVERAGE: \: %5.1lf%s (avg)\n
GPRINT:dentry:LAST:Dentry cache\: %5.1lf%s (cur)
GPRINT:dentry:MAX: \: %5.1lf%s (max)
GPRINT:dentry:MIN: \: %5.1lf%s (min)
GPRINT:dentry:AVERAGE: \: %5.1lf%s (avg)\n
On the lines starting with ‘DEF’ you can see references to the data sources (DS) ‘inodecache’ and ‘dentrycache’, these will have different names in your case, e.g. ‘totalnumqueries’.
You can use the ‘rrdtool dump’ command to show the data sources contained in your rrd file, if I remember correctly some of your data sources will be truncated by Xymon, e.g. totalnumqueries_ip_ratelimited might be too long.
If you now what your DSs are called, you’ll have to edit the graph definition to reference the actual names, e.g.:
[unboundstats]
TITLE Unbound Stats
YAXIS Num
DEF:numqueries=unboundstats.rrd:totalnumqueries:AVERAGE
DEF:numcachehits=unboundstats.rrd:totalnumcachehits:AVERAGE
LINE2:numqueries#00CCCC:Total Queries
LINE2:numcachehits#FF0000:Total Cache Hits
COMMENT:\n
GPRINT:numqueries:LAST:Inode cache \: %5.1lf%s (cur)
GPRINT:numqueries:MAX: \: %5.1lf%s (max)
GPRINT:numqueries:MIN: \: %5.1lf%s (min)
GPRINT:numqueries:AVERAGE: \: %5.1lf%s (avg)\n
GPRINT:numcachehits:LAST:Dentry cache\: %5.1lf%s (cur)
GPRINT:numcachehits:MAX: \: %5.1lf%s (max)
GPRINT:numcachehits:MIN: \: %5.1lf%s (min)
GPRINT:numcachehits:AVERAGE: \: %5.1lf%s (avg)\n
You’ll need to define one DEF-line for each value you want to display on the graph (DEF:<Alias for further processing>=<rrd file name>:<data source name>:<consolidation function>).
Best regards,
Fabian
Von: Xymon <xymon-bounces at xymon.com> Im Auftrag von Josh Luthman
Gesendet: Dienstag, 6. Juli 2021 15:28
An: Xymon MailingList <xymon at xymon.com>
Betreff: [Xymon] Trouble starting ext test to rrd, graph
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: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20210706/d81496d3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5131 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20210706/d81496d3/attachment.bin>
More information about the Xymon
mailing list