[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] NCV rrd help



Does your rrd have any data in it? (rrdtool dump foo.rrd)

On 12/6/06, Alun Watson <Alun.Watson (at) fp.co.nz> wrote:

Hello, I was hoping that you guy's might be able to suggest why my NCV is not displaying. I get links on the both the trends webpage and the new report page. I've set up script that reports squid

serverhttpbitsin : 38871.2
serverhttpbitsout : 8186.26

and squidclients



numberofclients:28



I've entered into "hobbitserver.cfg"

TEST2RRD="cpu=la<snip>,squid=ncv,squidclients=ncv"
GRAPHS="la,<snip>,ncv,squid,squidclients"
NCV_squid="serverhttpbitsin:GAUGE,serverhttpbitsout:GAUGE,*:NONE"
NCV_squidclients="numberofclients:GAUGE,*:NONE"

"hobbitgraph.cfg"
[squid]
        TITLE Squid IN-OUT
        YAXIS # bits
        DEF:serverhttpbitsin=squid.rrd:IN:AVERAGE
        DEF:serverhttpbitsout=squid.rrd:OUT:AVERAGE
        LINE2:IN#555555:IN_Traffic
        LINE2:OUT#880000:OUT_Traffic
        COMMENT:\n
        GPRINT:IN:LAST:IN_Traffic \: %5.1lf%s (cur)
        GPRINT:IN:MAX: \: %5.1lf%s (max)
        GPRINT:IN:MIN: \: %5.1lf%s (min)
        GPRINT:IN:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:OUT:LAST:OUT_Traffic \: %5.1lf%s (cur)
        GPRINT:OUT:MAX: \: %5.1lf%s (max)
        GPRINT:OUT:MIN: \: %5.1lf%s (min)
        GPRINT:OUT:AVERAGE: \: %5.1lf%s (avg)\n
[squidclients]
        TITLE Squid Clients
        YAXIS # count
        DEF:numberofclients=squidclients.rrd:clients:AVERAGE
        LINE2:clients#880000:Number_of_clients
        COMMENT:\n
        GPRINT:clients:LAST:Number_of_clients \: %5.1lf%s (cur)
        GPRINT:clients:MAX: \: %5.1lf%s (max)
        GPRINT:clients:MIN: \: %5.1lf%s (min)
        GPRINT:clients:AVERAGE: \: %5.1lf%s (avg)\n