Xymon Mailing List Archive search

MRTG graphs

list Jeff Newman
Fri, 2 Jun 2006 11:47:48 -0500
Message-Id: <user-59940b75e917@xymon.invalid>

Chris,

I would recompile hobbit with the newer version of rrdtool vs. downgrading rrd.

# rrdtool info mrtg.router.gi0_1.rrd | grep rrd_ver
rrd_version = "0003"

# rrdtool -V
RRDtool 1.2.11  Copyright 1997-2005 by Tobias Oetiker <user-645e379b3ab6@xymon.invalid>
               Compiled Fri Nov 11 18:44:49 CST 2005

So it does work with 1.2.11

I would keep that hobbitgraph FNPATTERN change as well (thanks Henrik
for incorporating that into the new hobbit)

-Jeff

On 6/2/06, Christophe Truffier <user-d9739e04a5b3@xymon.invalid> wrote:
Henrik Stoerner wrote:
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 <user-645e379b3ab6@xymon.invalid>
               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.
Yes, I've just see that I have librrd0 under 1.0.49, used with hobbit
since I installed it and librrd2 under 1.2.11 who comes with rrdtool
install (done while trying to put mrtg graphs into hobbit).

So, I'll have to downgrade rrdtool.

Thanks for help

--
Christophe Truffier
Pack-Solutions