[rrd-users] YANQ - Yet Another N00b Question - RRD not updating with expected data

Brander, Eric Eric.Brander at ACS-INC.com
Thu Feb 6 21:18:13 MET 2003


Preface: I'm a total RRDTool novice.

I use this dinky little script to update an rrd:

#!c:\perl\bin\perl -w

use LWP::Simple;

$_ = get("http://weather.noaa.gov/weather/current/KAUS.html");
if (/<TD><FONT FACE="Arial,Helvetica">  (.*?)%/) {
	$hum = "$1";
}
if (/<TD><FONT FACE="Arial,Helvetica">  (.*?) F/) {
	$temp = "$1";
}

#printing the variables and time are just for me to look at
print "$hum\n";
print "$temp\n";
print time, "\n";

system("rrdtool update weather.rrd N:$hum:$temp");


I run that every 5 minutes.  When I do a fetch;

rrdtool fetch weather.rrd AVERAGE --start -8640

I get:
~snip~
1044558000: -1.#IND000000e+000 -1.#IND000000e+000
1044558300: -1.#IND000000e+000 -1.#IND000000e+000
1044558600: 0.0000000000e+000 0.0000000000e+000
1044558900: 0.0000000000e+000 0.0000000000e+000
1044559200: 0.0000000000e+000 0.0000000000e+000
1044559500: 0.0000000000e+000 0.0000000000e+000
1044559800: 0.0000000000e+000 0.0000000000e+000
1044560100: 0.0000000000e+000 0.0000000000e+000
1044560400: 0.0000000000e+000 0.0000000000e+000
1044560700: 0.0000000000e+000 0.0000000000e+000
1044561000: 0.0000000000e+000 0.0000000000e+000
1044561300: 0.0000000000e+000 0.0000000000e+000
1044561600: 0.0000000000e+000 0.0000000000e+000
1044561900: 0.0000000000e+000 0.0000000000e+000
1044562200: -1.#IND000000e+000 -1.#IND000000e+000

I get 0's where I'd expect a humidity and a temperature number.  So I must
be doing something wrong. My variables are correct, as they print out the
expected data.  Could someone throw me a clue as to what I am doing wrong?  

TIA!

Eric Brander
ACS
Texas CHIP Account
Sr. Communications Engineer - Information Systems Department
512.336.3331
Eric dot Brander at acs-inc dot com


-----Original Message-----
From: Jason Russell [mailto:jason at 6speed.org]
Sent: Thursday, February 06, 2003 11:58 AM
To: Glenn MacGregor
Cc: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: Graph color question





On Thu, 6 Feb 2003, Glenn MacGregor wrote:

> Hi All,
>
> I have a quick question about graphing.  I have a area graph that goes
from 0 to 100, the area is green in color.  Is it possible to have an upside
down area (starting at 100 and going down) which is red.  So when the value
of the green color data is less than 100 you see that value in a red area.
>
> If the value is 100 you see no red if the value is 60 you see 40 red, 0-60
is green area, 60-100 is a red area.
>

You can make a CDEF with a value of 100 and make it a red area in the
graph, then make an area with your data in green. As long as you use AREA
in both cases they should overlay and you get the effect you want.

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list