<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 1/14/2011 5:52 PM, Eduardo Bragatto wrote:
<blockquote
cite="mid:889AEDC7-991A-47B0-81F2-6DEC265C301A@bragatto.com"
type="cite">
<pre wrap="">
On Jan 14, 2011, at 11:36 PM, Philip Peake wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Note graph starting at ~33.6 million, rather than 0.033.
Although this is a COUNTER, there is nothing there that looks like a
reset.
There is even a U inserted as the first value, just to be safe.
What an I doing wrong???
</pre>
</blockquote>
<pre wrap="">
Nothing, actually. You did not get 33 million, you got 33 mili (or "33
* 10^(-3)"), which is exactly what you expect.
See parameter -X from rrdtool graph to tweak how the units are handled:
<a class="moz-txt-link-freetext" href="http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html">http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html</a>
If you don't want any units to be used, just use "-X 0" in your
rrdgraph call and you will get a graph with Y axis displaying numbers
like "0.033" instead of "33 m".
</pre>
</blockquote>
<br>
Ok ... added -X 0<br>
<blockquote><tt>rrdtool graph hour/req.png -X 0 -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'</tt><br>
</blockquote>
which generates this graph:<br>
<br>
<img alt="" src="cid:part1.04050804.07020607@vogon.net" height="273"
width="797"><br>
<br>
Not certain that a graph with all zeros on the Y axis is much of an
improvement :-)<br>
<blockquote><br>
</blockquote>
</body>
</html>