<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
I have been looking at this for far too long.<br>
<br>
I am convinced that what I am doing is right, but usually, when I am
convinced of that, I am doing something stupid and just can't see
it.<br>
<br>
Creating a rrd with:<br>
<blockquote><tt>rrdtool create db/req.rrd --start 1295054280 --step
30 DS:centos:COUNTER:60:U:U</tt><br>
</blockquote>
Running the application, which is adding data thus:<br>
<blockquote><tt>rrdtool update /home/philip/Monitor/db/req.rrd
1295054880:U <br>
rrdtool update /home/philip/Monitor/db/req.rrd 1295054910:421 <br>
rrdtool update /home/philip/Monitor/db/req.rrd 1295054940:422 <br>
rrdtool update /home/philip/Monitor/db/req.rrd 1295054970:423 <br>
rrdtool update /home/philip/Monitor/db/req.rrd 1295055000:424 <br>
rrdtool update /home/philip/Monitor/db/req.rrd 1295055030:425<br>
</tt></blockquote>
Looking at the contents:<br>
<blockquote><tt>$ rrdtool fetch db/req.rrd LAST -s -300 -e N<br>
centos<br>
<br>
1295054760: nan<br>
1295054790: nan<br>
1295054820: nan<br>
1295054850: nan<br>
1295054880: nan<br>
1295054910: nan<br>
1295054940: 3.3333333333e-02<br>
1295054970: 3.3333333333e-02<br>
1295055000: 3.3333333333e-02<br>
1295055030: 3.3333333333e-02<br>
1295055060: nan</tt><br>
</blockquote>
Looks ok.<br>
Now plot a graph:<br>
<blockquote><tt>rrdtool graph hour/req.png -a PNG
--title="Production Directory Server Operations Requested" \<br>
--vertical-label="Operations/sec" -w 700 -h 200 -s -7200 \<br>
'DEF:centos=db/req.rrd:centos:LAST' \<br>
'LINE1:centos#0000ff:centos'<br>
</tt></blockquote>
and we get this:<br>
<br>
<img alt="" src="cid:part1.08000309.03060506@vogon.net" height="273"
width="797"><br>
<br>
Note graph starting at ~33.6 million, rather than 0.033.<br>
<br>
Although this is a COUNTER, there is nothing there that looks like a
reset.<br>
There is even a U inserted as the first value, just to be safe.<br>
<br>
What an I doing wrong???<br>
<br>
<tt>$ rrdtool --version<br>
RRDtool 1.4.4 Copyright 1997-2010 by Tobias Oetiker
<a class="moz-txt-link-rfc2396E" href="mailto:tobi@oetiker.ch"><tobi@oetiker.ch></a><br>
Compiled Sep 20 2010 11:28:29<br>
</tt>
<blockquote><tt></tt></blockquote>
<br>
<blockquote><br>
</blockquote>
</body>
</html>