[hobbit] MRTG graphs

Jeff Newman jeffnewman75 at gmail.com
Fri Jun 2 18:47:48 CEST 2006


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 <tobi at oetiker.ch>
               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 <ctruffier at pack-solutions.com> 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 <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.
>
> 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
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>



More information about the Xymon mailing list