[hobbit] MRTG graphs

Henrik Stoerner henrik at hswn.dk
Fri Jun 2 17:25:16 CEST 2006


On Fri, Jun 02, 2006 at 04:01:28PM +0200, Christophe Truffier wrote:
> Yes, now it works... so here's the result:
> grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" 
> SCRIPT_NAME="hobbitgraph.sh" 
> QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" 
> /usr/lib/hobbit/cgi-bin/hobbitgraph.sh
> Content-type: image/png
> Expires: Fri, 02 Jun 2006 14:02:39 GMT
> 
> Content-type: text/html
> 
> <html><head><title>Invalid request</title></head>
> <body>can't handle RRD file version 0003</body></html>
> 
> grunt:/var/lib/hobbit/rrd/master# rrdtool -V
> RRDtool 1.2.11  Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch>
>                Compiled Mon Jan  9 17:04:13 UTC 2006
> 
> Maybe the rrdtool version isn't supported ?

Or Hobbit was compiled with the 1.0.x version of the RRDtool libraries,
but your MRTG generates files with the 1.2.x version of RRDtool.

A lot of Linux distributions ship with RRDtool 1.0.x, and it causes all
sorts of confusion if you compile Hobbit with the standard RRDtool and
then have a hand-made installation of RRDtool 1.2.x. Check where you
have an "rrd.h" file installed and where it came from (the 1.0.x or
1.2.x version - it says so at the top of the file). Try removing your
1.0.x version of RRDtool, and re-compile Hobbit with the full
"./configure; make; make install" sequence.


Regards,
Henrik




More information about the Xymon mailing list