[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] MRTG graphs



Christophe Truffier wrote:
Christophe Truffier wrote:
Hello,

Following this page: http://hobbitmon.sourceforge.net/docs/hobbit-mrtg.html
I added MRTG graph to my hobbit server, but when I look to trends page I didn't see anything.

One more mail...

To resume:
 - First I've created a MRTG config file for test like this:

WorkDir: /var/lib/hobbit/rrd
LogFormat: rrdtool
EnableIPv6: no
Options[_]: growright,bits
Directory[mrtg.master.eth0]: master
Target[mrtg.master.eth0]: /192.168.0.1:public (at) master:
SetEnv[mrtg.master.eth0]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth0"
MaxBytes[mrtg.master.eth0]: 12500000
Title[mrtg.master.eth0]: eth0   -- master

 - Next I've put the MRTG data collector into my hobbitlaunch.cfg file:

[mrtg]

CMD /usr/bin/mrtg --lock-file $BBSERVERLOGS/mrtg.lock /etc/mrtg.cfg.integration_hobbit
LOGFILE $BBSERVERLOGS/mrtg.log
INTERVAL 5m



And that's all !

Still got a big problem: there is no MRTG image at all in the trends page for this host... I've tried a lot of things, including this command:

REQUEST_URI="" QUERY_STRING="host=master&service=mrtg&graph_width=576&graph_height=120&first=1&count=1&disp=master&graph=hourly&action=view" /usr/lib/hobbit/server/bin/hobbitgraph.cgi --env=/etc/hobbit/hobbitcgi.cfg --rrddir=/var/lib/hobbit/rrd/ --config=/etc/hobbit/hobbitgraph.cfg

for that one I get the image sended to the console.(but cannot save it with --save=FILENAME option !! - using hobbit 4.1.2p1)

Maybe I've made a typo ? I don't understand why this graph is the ONLY ONE who doesn't want to show up !! (hobbit graph mrtg is little bit shy??)

Thanks for help.

--
Christophe Truffier
Pack-Solutions