[rrd-users] Re: Help on RRDTOO monitoring cpu loadavg needed!

Alex van den Bogaerdt alex at ergens.op.het.net
Sat Sep 3 11:56:20 MEST 2005

On Sat, Sep 03, 2005 at 06:31:10PM +0900, "CHEW YEW CHOONG" wrote:

> Thanks for the comment and suggestion. As im very to rrdtool and perl,
> it will take me sometimes to learn how to print those figure to file
> with timestamp and the computing part.

Perhaps you should learn one thing at a time?

> The result show on screes:
> 0.33                  <---- this 3 lines from 
>  0.49                 <---- print "$min1 $min5 $min15\n";
>  0.48                 <---- strange on the line break and space.

There you have it.  Unexpected values in those variables; perhaps
RRDtool has a problem with it.

Concentrate on that problem first.  You want numbers and numbers ONLY.
Maybe "strip" or a similar perl command helps.

Don't even look at RRDtool until you have that input as it should be.
Write the input to a file and look at that file with a program that
allows you to view byte per byte.  On unix that would be "od", I don't
know a similar command on dos.  Most likely a perl program exists or
can be written with little effort.

Only when the input is _exactly_ like you need it to be, continue
with debugging rrdtool.  Chances are there's nothing left to debug.

> And when i do a rrdtool dump cpu.rrd, most of the lines display on screen are as below:
>                         <!-- 2005-08-08 09:00:00 JST / 1123459200 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
>                         <!-- 2005-08-09 09:00:00 JST / 1123545600 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
>                         <!-- 2005-08-10 09:00:00 JST / 1123632000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
>                         <!-- 2005-08-11 09:00:00 JST / 1123718400 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>

Find the most recent time stamps.  When you setup a new database,
all those lines will be NaN (by design).  When you enter data into
the database, those values are replaced including time stamps.

You only need to look at time 1125741000 and later.


Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list