[hobbit] NCV rrd help
Dan Vande More
bigdan at gmail.com
Thu Dec 7 00:02:08 CET 2006
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
On 12/6/06, Alun Watson <Alun.Watson at fp.co.nz> wrote:
>
> Yes, sorry I forgot to include that thanks Dan.
>
> "squidclients.rrd"
> <rrd>
> <version> 0001 </version>
> <step> 300 </step> <!-- Seconds -->
> <lastupdate> 1165444691 </lastupdate> <!-- 2006-12-07 11:38:11
> NZDT -->
>
> <ds>
> <name> numberofclients </name>
> <type> GAUGE </type>
> <minimal_heartbeat> 600 </minimal_heartbeat>
> <min> 0.0000000000e+00 </min>
> <max> NaN </max>
>
> <!-- PDP Status -->
> <last_ds> UNKN </last_ds>
> <value> 4.7750000000e+03 </value>
> <unknown_sec> 0 </unknown_sec>
> </ds>
>
> <!-- Round Robin Archives -->
> <rra>
> <cf> AVERAGE </cf>
> <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> <xff> 5.0000000000e-01 </xff>
>
> <cdp_prep>
> <ds><value> NaN </value> <unknown_datapoints> 0
> </unkno
> wn_datapoints></ds>
> </cdp_prep>
> <database>
> <snip>
> <!-- 2006-12-07 10:55:00 NZDT / 1165442100 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:00:00 NZDT / 1165442400 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:05:00 NZDT / 1165442700 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:10:00 NZDT / 1165443000 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:15:00 NZDT / 1165443300 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:20:00 NZDT / 1165443600 -->
> <row><v>
> 2.8000000000e+01 </v></row>
> <!-- 2006-12-07 11:25:00 NZDT / 1165443900 -->
> <row><v>
> 2.7226666667e+01 </v></row>
> <!-- 2006-12-07 11:30:00 NZDT / 1165444200 -->
> <row><v>
> 2.6000000000e+01 </v></row>
> <!-- 2006-12-07 11:35:00 NZDT / 1165444500 -->
> <row><v>
> 2.5630000000e+01 </v></row>
> </database>
> </rra>
>
> *and*
>
> "squid.rrd"
> <!-- Round Robin Database Dump -->
> <rrd>
> <version> 0001 </version>
> <step> 300 </step> <!-- Seconds -->
> <lastupdate> 1165444993 </lastupdate> <!-- 2006-12-07 11:43:13
> NZDT -->
>
> <ds>
> <name> serverhttpbitsin </name>
> <type> GAUGE </type>
> <minimal_heartbeat> 600 </minimal_heartbeat>
> <min> 0.0000000000e+00 </min>
> <max> NaN </max>
>
> <!-- PDP Status -->
> <last_ds> UNKN </last_ds>
> <value> 7.2362069000e+06 </value>
> <unknown_sec> 0 </unknown_sec>
> </ds>
>
> <ds>
> <name> serverhttpbitsout </name>
> <type> GAUGE </type>
> <minimal_heartbeat> 600 </minimal_heartbeat>
> <min> 0.0000000000e+00 </min>
> <max> NaN </max>
>
> <!-- PDP Status -->
> <last_ds> UNKN </last_ds>
> <value> 1.6353314600e+06 </value>
> <unknown_sec> 0 </unknown_sec>
> </ds>
>
> <!-- Round Robin Archives -->
> <rra>
> <cf> AVERAGE </cf>
> <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> <xff> 5.0000000000e-01 </xff>
>
> <cdp_prep>
> <ds><value> NaN </value> <unknown_datapoints> 0
> </unkno
> wn_datapoints></ds>
> <ds><value> NaN </value> <unknown_datapoints> 0
> </unkno
> wn_datapoints></ds>
> </cdp_prep>
> <database>
> <!-- 2006-12-07 11:00:00 NZDT / 1165442400 -->
> <row><v>
> 4.6487035333e+04 </v><v> 3.9878262000e+03 </v></row>
> <!-- 2006-12-07 11:05:00 NZDT / 1165442700 -->
> <row><v>
> 2.5109441667e+04 </v><v> 2.4132633333e+03 </v></row>
> <!-- 2006-12-07 11:10:00 NZDT / 1165443000 -->
> <row><v>
> 2.1550620000e+04 </v><v> 2.9452312000e+03 </v></row>
> <!-- 2006-12-07 11:15:00 NZDT / 1165443300 -->
> <row><v>
> 2.9355680000e+04 </v><v> 5.5077820000e+03 </v></row>
> <!-- 2006-12-07 11:20:00 NZDT / 1165443600 -->
> <row><v>
> 2.9281812000e+04 </v><v> 5.2234711600e+03 </v></row>
> <!-- 2006-12-07 11:25:00 NZDT / 1165443900 -->
> <row><v>
> 2.2204549333e+04 </v><v> 1.9156342133e+03 </v></row>
> <!-- 2006-12-07 11:30:00 NZDT / 1165444200 -->
> <row><v>
> 3.1672078000e+04 </v><v> 3.8617092000e+03 </v></row>
> <!-- 2006-12-07 11:35:00 NZDT / 1165444500 -->
> <row><v>
> 2.9816217333e+04 </v><v> 4.3961993333e+03 </v></row>
> <!-- 2006-12-07 11:40:00 NZDT / 1165444800 -->
> <row><v>
> 3.5447117000e+04 </v><v> 6.5455652333e+03 </v></row>
> </database>
> </rra>
>
>
>
> ------------------------------
> *From:* Dan Vande More [mailto:bigdan at gmail.com]
> *Sent:* Thursday, 7 December 2006 11:37
> *To:* hobbit at hswn.dk
> *Subject:* 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20061206/fa0f0847/attachment.html>
More information about the Xymon
mailing list