[hobbit] Larrd graphs not working

Henrik Stoerner henrik at hswn.dk
Thu Dec 29 22:30:43 CET 2005


On Thu, Dec 29, 2005 at 03:46:37PM -0500, Michael Frey wrote:
> After deleting the lines as suggested, and adding the <89>PNG, the image 
> in the viewer is still a black screen.
> 
> If I delete the <89>PNG, the file size is zero bytes.

OK, that *is* very small.

What does the RRD files look like ? Those in the
~hobbit/data/rrd/HOSTNAME/ directory - they should be at least 
some 18-19 KB in size or larger.

If you run "rrdtool dump ~hobbit/data/rrd/HOSTNAME/tcp.conn.rrd", 
the beginning of the output should look like this:

-------- start rrdtool dump output --------
<!-- Round Robin Database Dump -->
<rrd>
        <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1135891575 </lastupdate> <!-- 2005-12-29 22:26:15
CET -->

        <ds>
                <name> sec </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> 2.2500000000e-03 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

<!-- Round Robin Archives -->
        <rra>
-------- end of rrdtool dump output --------


You can try generating the graph image for one of the TCP "conn" 
graphs by running

rrdtool graph x.png \
   --title "localhost TCP Connection Times Last 48 Hours" \
   -w576 -h120 -v Seconds -a PNG -s "e-48h" \
   "DEF:p0=/home/hobbit/data/rrd/localhost/tcp.conn.rrd:sec:AVERAGE" \
   "LINE2:p0#0000FF:conn"

(replace the "/home/hobbit..." filename with the filename of your
tcp.conn.rrd file).

If you run this, what happens ? The output should be "673x199" (which is
the size of the generated PNG image), and the PNG image is in the x.png
file.


Henrik




More information about the Xymon mailing list