FW: [hobbit] NCV rrd help

Alun Watson Alun.Watson at fp.co.nz
Thu Dec 7 02:07:51 CET 2006


 
Wow ... don't I feel like a boob. 
Thanks Dan you were right I've changed the squid and squidclients to
this and it works. 
 
 
[squid]
        TITLE Squid IN-OUT
        YAXIS # bits
        DEF:serverhttpbitsin=squid.rrd:serverhttpbitsin:AVERAGE
        DEF:serverhttpbitsout=squid.rrd:serverhttpbitsout:AVERAGE
        LINE2:serverhttpbitsin#555555:IN_Traffic
        LINE2:serverhttpbitsout#880000:OUT_Traffic
        COMMENT:\n
        GPRINT:serverhttpbitsin:LAST:IN_Traffic \: %5.1lf%s (cur)
        GPRINT:serverhttpbitsin:MAX: \: %5.1lf%s (max)
        GPRINT:serverhttpbitsin:MIN: \: %5.1lf%s (min)
        GPRINT:serverhttpbitsin:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:serverhttpbitsout:LAST:OUT_Traffic \: %5.1lf%s (cur)
        GPRINT:serverhttpbitsout:MAX: \: %5.1lf%s (max)
        GPRINT:serverhttpbitsout:MIN: \: %5.1lf%s (min)
        GPRINT:serverhttpbitsout:AVERAGE: \: %5.1lf%s (avg)\n
[squidclients]
        TITLE Squid Clients
        YAXIS # count
        DEF:numberofclients=squidclients.rrd:numberofclients:AVERAGE
        LINE2:numberofclients#880000:Number_of_clients
        COMMENT:\n
        GPRINT:numberofclients:LAST:Number_of_clients \: %5.1lf%s (cur)
        GPRINT:numberofclients:MAX: \: %5.1lf%s (max)
        GPRINT:numberofclients:MIN: \: %5.1lf%s (min)
        GPRINT:numberofclients:AVERAGE: \: %5.1lf%s (avg)\n

 

________________________________

From: Dan Vande More [mailto:bigdan at gmail.com] 
Sent: Thursday, 7 December 2006 12:02 
To: hobbit at hswn.dk
Subject: Re: [hobbit] NCV rrd help


Ok, that looks good. 

This might be stupid, but according to this:

http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html

Your DEF lines should be of the format:


DEF:var_name_1=
some.rrd:ds_name:CF

But in your case you have:

        
DEF:serverhttpbitsin=squid.rrd:IN:AVERAGE
DEF:serverhttpbitsout=squid.rrd:OUT:AVERAGE
DEF:numberofclients=squidclients.rrd:clients:AVERAGE


Where you seem to have an odd $ds_name

Where did IN, OUT, and clients come from? Your rrds says your ds names
are 
numberofclients, serverhttpbitsin, 
serverhttpbitsout.

It seems this is your problem. Forgive me if it's not, I've only
recently gained a rudimentary understanding of how CDEFs work, their
complexity has overwhelmed me far too long than I care to admit.


Dan

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20061207/4fbc7a82/attachment.html>


More information about the Xymon mailing list