[rrd-users] Re: rrdtool creates files doesn't update
Kevin Enslow
kspam at comcast.net
Tue Dec 20 23:02:41 MET 2005
I believe i fixed the problem. I was compling rrdtool with CFLAGS=-03.
Took that out and made a a test.rrd with 1 DS with a step of 60. wrote a
shell script to update it every 60 seconds and everything seems to be
working.
For completeness, Here are my create and update statements. Before this,
I have an if statment checking if $rrd_file exists. if it doesn't it's
created, if it does it's updated.
The create is:
RRDs::create
( "$rrd_file",
"--start=$cur_time",
"--step=300",
"DS:rss:GAUGE:600:0:U",
"DS:vsz:GAUGE:600:0:U",
"DS:pcpu:GAUGE:600:0:U",
"RRA:AVERAGE:0.5:1:2384", # 8 days of
DataPoints
"RRA:MAX:0.5:12:192", # Max calc over
1 hour last 8 days
"RRA:MIN:0.5:12:192", # Min calc over
1 hour last 8 days
"RRA:AVERAGE:0.5:6:1680", # half hour avg
kept for 1 month
"RRA:AVERAGE:0.5:12:4464", # 1 Hour avg
keep last 6months
"RRA:AVERAGE:0.5:144:380" # 1 day avg keep
last year
);
update is:
RRDs::update(
"$rrd_file",
"$cur_time:$rss:$vsz:$pcpu"
);
.------[ Darryl Dunkin wrote (2005/12/20 at 01:12:37 PM) ]------
|
> Can you send both the create and update commands your script is running?
>
>
> -----Original Message-----
> From: rrd-users-bounce at list.ee.ethz.ch
> [mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Kevin Enslow
> Sent: Tuesday, December 20, 2005 10:37
> To: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] rrdtool creates files doesn't update
>
> I'm running into an unusual error. I have a script that creates rrd
> files and updates them automaticly. I've moved this to a new server and
> running the same scripts creates the RRD files file, but I only get NaN
> values. I've tried updating the files manually then fetching the value
> but I get the same result.
>
> Both servers are running Solaris 8, and from what I can tell they have
> been compiled the same, with perl library installed.
>
> Any suggestions on how I could troubleshoot this I would appreciate it.
>
> Versions I've tried:
>
> rrdtool-1.2.11
> rrdtool-1.2.12
> rrdtool-1.0.49
>
> All have the same problem so I'm thinking that it's some weird solaris
> library issue. Any ideas would be very helpful.
>
>
> --
> Kevin Enslow
>
> --
> 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
>
> --
> 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
|
`^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
--
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