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. The RRD file is clearly updated but when I want to see image of the graph hobbitgraph.sh say: The image “http://hobbit/hobbit-cgi/hobbitgraph.sh?host=master&service=mrtg&graph_width=576&graph_height=120&first=1&count=1&disp=master&graph=hourly&action=view” cannot be displayed, because it contains errors.
I've search but found nothing to explain why I've this error.
Any idea ? Thanks
-- Christophe Truffier Pack-Solutions
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.
The «trends» page associated to this host only show «hobbit graph mrtg» (image label) right next to the zooming tool icon.
I've just add «--debug» to rrdupdate in hobbitlaunch.cfg...
Thks
-- Christophe Truffier Pack-Solutions
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
Christophe Truffier wrote:
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 Do you see the rrd file under ~hobbit/data/master/ ? do you have host called master only and no FQDN in your bb-hosts file ?
/thomas
Thomas wrote:
Christophe Truffier wrote:
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 Do you see the rrd file under ~hobbit/data/master/ ? do you have host called master only and no FQDN in your bb-hosts file ?
Yes, the rrd file is here:
/var/lib/hobbit# ls -l rrd/master/mrtg* -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 09:38 rrd/master/mrtg.master.eth0.rrd
and the host master is in my bb-host file: /var/lib/hobbit# grep master /etc/hobbit/bb-hosts 192.168.0.1 master # ssh http://master/ cupsd
-- Christophe Truffier Pack-Solutions
Christophe Truffier wrote:
Thomas wrote:
Christophe Truffier wrote:
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 Do you see the rrd file under ~hobbit/data/master/ ? do you have host called master only and no FQDN in your bb-hosts file ?
Yes, the rrd file is here:
/var/lib/hobbit# ls -l rrd/master/mrtg* -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 09:38 rrd/master/mrtg.master.eth0.rrd
and the host master is in my bb-host file: /var/lib/hobbit# grep master /etc/hobbit/bb-hosts 192.168.0.1 master # ssh http://master/ cupsd
maybe off but pls put the target line before the directory line, did you make the mrtg file with cfgmaker ?
do you have the other rrd files under the /var/lib/hobbit/rrd directory ?
Thomas wrote:
Christophe Truffier wrote:
Thomas wrote:
Christophe Truffier wrote:
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 Do you see the rrd file under ~hobbit/data/master/ ? do you have host called master only and no FQDN in your bb-hosts file ?
Yes, the rrd file is here:
/var/lib/hobbit# ls -l rrd/master/mrtg* -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 09:38 rrd/master/mrtg.master.eth0.rrd
and the host master is in my bb-host file: /var/lib/hobbit# grep master /etc/hobbit/bb-hosts 192.168.0.1 master # ssh http://master/ cupsd
maybe off but pls put the target line before the directory line, did you make the mrtg file with cfgmaker ? I've put the target line before directory line... I don't think that will change anything. The mrtg file was done by hand, following Henrik doc.
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 drwxr-xr-x 12 hobbit hobbit 1024 2006-04-14 19:59 .. drwxr-xr-x 2 hobbit hobbit 1024 2006-04-18 15:41 . -rw-r--r-- 1 hobbit hobbit 323292 2006-04-19 13:52 vmstat.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 users.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 procs.rrd -rw-r--r-- 1 hobbit hobbit 304308 2006-04-19 13:52 netstat.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.swap.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.real.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.actual.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 la.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,var.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,root.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,pub.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,home.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,boot.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.ssh.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.http.master,.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.cupsd.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.conn.rrd -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
-- Christophe Truffier Pack-Solutions
Christophe Truffier wrote:
Thomas wrote:
Christophe Truffier wrote:
Thomas wrote:
Christophe Truffier wrote:
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 Do you see the rrd file under ~hobbit/data/master/ ? do you have host called master only and no FQDN in your bb-hosts file ?
Yes, the rrd file is here:
/var/lib/hobbit# ls -l rrd/master/mrtg* -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 09:38 rrd/master/mrtg.master.eth0.rrd
and the host master is in my bb-host file: /var/lib/hobbit# grep master /etc/hobbit/bb-hosts 192.168.0.1 master # ssh http://master/ cupsd
maybe off but pls put the target line before the directory line, did you make the mrtg file with cfgmaker ? I've put the target line before directory line... I don't think that will change anything. The mrtg file was done by hand, following Henrik doc.
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 drwxr-xr-x 12 hobbit hobbit 1024 2006-04-14 19:59 .. drwxr-xr-x 2 hobbit hobbit 1024 2006-04-18 15:41 . -rw-r--r-- 1 hobbit hobbit 323292 2006-04-19 13:52 vmstat.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 users.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 procs.rrd -rw-r--r-- 1 hobbit hobbit 304308 2006-04-19 13:52 netstat.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.swap.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.real.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 memory.actual.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:52 la.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,var.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,root.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,pub.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,home.rrd -rw-r--r-- 1 hobbit hobbit 38532 2006-04-19 13:52 disk,boot.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.ssh.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.http.master,.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.cupsd.rrd -rw-r--r-- 1 hobbit hobbit 19548 2006-04-19 13:55 tcp.conn.rrd -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
I am running out of ideas. This is what I have, baybe you can find something.
Target[mrtg.router.enet0]: 1:public at 192.168.1.1: Directory[mrtg.router.enet0]: router SetEnv[mrtg.router.enet0]: MRTG_INT_IP="0.0.0.0" MRTG_INT_DESCR="enet0" MaxBytes[mrtg.router.enet0]: 12500000 Title[mrtg.router.enet0]: Traffic Analysis for 1 -- PageTop[mrtg.router.enet0]: <H1>Traffic Analysis for 1 -- </H1> <TABLE> <TR><TD>System:</TD> <TD> in </TD></TR> <TR><TD>Maintainer:</TD> <TD></TD></TR> <TR><TD>Description:</TD><TD>enet0 </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR> <TR><TD>Ip:</TD> <TD>0.0.0.0 ()</TD></TR> </TABLE>
in hobbitlaunch.cfg
[mrtg] CMD /usr/bin/mrtg --lock-file $BBSERVERLOGS/mrtg.lock /etc/mrtg/mrtg.cfg LOGFILE $BBSERVERLOGS/mrtg.log INTERVAL 5m using standard hobbitgraphs.cfg
[mrtg] FNPATTERN mrtg.*\.([a-z0-9]+).rrd TITLE Network Traffic (MRTG) YAXIS Bits/second DEF:inbytes at RRDIDX@=@RRDFN@:ds0:AVERAGE CDEF:in at RRDIDX@=inbytes at RRDIDX@,8,* DEF:outbytes at RRDIDX@=@RRDFN@:ds1:AVERAGE CDEF:out at RRDIDX@=outbytes at RRDIDX@,8,* LINE2:in at RRDIDX@#@COLOR@:@RRDPARAM@ inbound GPRINT:in at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:in at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:in at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:in at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n LINE2:out at RRDIDX@#@COLOR@:@RRDPARAM@ outbound GPRINT:out at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:out at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:out at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:out at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n
and then my router in bb-hosts
192.168.1.1 router # DEVMON
I dont know if this helps you on the right track. What is in your mrtg log file ?
Thomas wrote:
I am running out of ideas. This is what I have, baybe you can find something. Thanks
Target[mrtg.router.enet0]: 1:public at 192.168.1.1: I've change this end of line from «/192.168.0.1:public at master:» to «1:public at master:»... Nothing better, still no graph in trends page.
PageTop[mrtg.router.enet0]: <H1>Traffic Analysis for 1 -- </H1> <TABLE> <TR><TD>System:</TD> <TD> in </TD></TR> <TR><TD>Maintainer:</TD> <TD></TD></TR> <TR><TD>Description:</TD><TD>enet0 </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR> <TR><TD>Ip:</TD> <TD>0.0.0.0 ()</TD></TR> </TABLE> I ain't got this, according to Henrik doc I didn't use this.
in hobbitlaunch.cfg
[mrtg] CMD /usr/bin/mrtg --lock-file $BBSERVERLOGS/mrtg.lock /etc/mrtg/mrtg.cfg LOGFILE $BBSERVERLOGS/mrtg.log INTERVAL 5m using standard hobbitgraphs.cfg Same as mine...
[mrtg] FNPATTERN mrtg.*\.([a-z0-9]+).rrd TITLE Network Traffic (MRTG) YAXIS Bits/second DEF:inbytes at RRDIDX@=@RRDFN@:ds0:AVERAGE CDEF:in at RRDIDX@=inbytes at RRDIDX@,8,* DEF:outbytes at RRDIDX@=@RRDFN@:ds1:AVERAGE CDEF:out at RRDIDX@=outbytes at RRDIDX@,8,* LINE2:in at RRDIDX@#@COLOR@:@RRDPARAM@ inbound GPRINT:in at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:in at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:in at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:in at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n LINE2:out at RRDIDX@#@COLOR@:@RRDPARAM@ outbound GPRINT:out at RRDIDX@:LAST: \: %10.1lf (cur) GPRINT:out at RRDIDX@:MAX: \: %10.1lf (max) GPRINT:out at RRDIDX@:MIN: \: %10.1lf (min) GPRINT:out at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n Got the same...
and then my router in bb-hosts
192.168.1.1 router # DEVMON
I dont know if this helps you on the right track. What is in your mrtg log file ?
Everything looks okay but no graph generated from hobbitgraph.sh cgi script... I'll put logs into my hobbit virtual host and try to see what's the problem.
Thanks for help
-- Christophe Truffier Pack-Solutions
On Wed, Apr 19, 2006 at 02:08:40PM +0200, Christophe Truffier wrote:
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
A bit late, but: What's in your TEST2RRD and GRAPHS settings in hobbitserver.cfg ?
Henrik
Henrik Stoerner wrote:
On Wed, Apr 19, 2006 at 02:08:40PM +0200, Christophe Truffier wrote:
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
A bit late, but: What's in your TEST2RRD and GRAPHS settings in hobbitserver.cfg ?
Here's what's in my hobbitserver.cfg: TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp, dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,send mail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
and
GRAPHS="la,disk,inode,qtree,memory,users,vmstat,iostat,tcp.http,tcp,netstat, mrtg::1,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iish ealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
Regards
-- Christophe Truffier Pack-Solutions
Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
-Jeff
On 5/5/06, Christophe Truffier <ctruffier at pack-solutions.com> wrote:
Henrik Stoerner wrote:
On Wed, Apr 19, 2006 at 02:08:40PM +0200, Christophe Truffier wrote:
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
A bit late, but: What's in your TEST2RRD and GRAPHS settings in hobbitserver.cfg ?
Here's what's in my hobbitserver.cfg: TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp, dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,send mail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
and
GRAPHS="la,disk,inode,qtree,memory,users,vmstat,iostat,tcp.http,tcp,netstat, mrtg::1,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iish ealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
Regards
-- Christophe Truffier Pack-Solutions
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, Jun 01, 2006 at 04:58:12PM -0500, Jeff Newman wrote:
Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
Thanks, I've made that the default now.
Henrik
Henrik Stoerner wrote:
On Thu, Jun 01, 2006 at 04:58:12PM -0500, Jeff Newman wrote:
Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
Thanks, I've made that the default now.
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300 last_update = 1149241601 ds[ds0].type = "COUNTER" ds[ds0].minimal_heartbeat = 600 ds[ds0].min = 0.0000000000e+00 ds[ds0].max = 1.2500000000e+07 ds[ds0].last_ds = "345572533" ds[ds0].value = 1.5902884768e+05 ds[ds0].unknown_sec = 0 ds[ds1].type = "COUNTER" ds[ds1].minimal_heartbeat = 600 ds[ds1].min = 0.0000000000e+00 ds[ds1].max = 1.2500000000e+07 ds[ds1].last_ds = "345572533" ds[ds1].value = 1.5902884768e+05 ds[ds1].unknown_sec = 0 (...)
I've generated graph manually with this command: grunt:/var/lib/hobbit/rrd/master# rrdtool graph /tmp/AA.png -s e-24h --title="Network Traffic (MRTG)" -v "Bits/second" DEF:inbytes=mrtg.master.eth0.rrd:ds0:AVERAGE CDEF:in=inbytes,8,* DEF:outbytes=mrtg.master.eth0.rrd:ds1:AVERAGE CDEF:out=outbytes,8,* LINE2:in#00FF00:'eth0 inbound' GPRINT:in:'LAST: \: %10.1lf (cur)' GPRINT:in:'MAX: \: %10.1lf (max)' GPRINT:in:'MIN: \: %10.1lf (min)' GPRINT:in:'AVERAGE: \: %10.1lf (avg)\n' LINE2:out#0000FF:'eth0 outbound' GPRINT:out:'LAST: \: %10.1lf (cur)' GPRINT:out:'MAX: \: %10.1lf (max)' GPRINT:out:'MIN: \: %10.1lf (min)' GPRINT:out:'AVERAGE: \: %10.1lf (avg)\n' 497x221
and it works ! I join the graph file...
So, why do that's not working with the cgi ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 12:22:45PM +0200, Christophe Truffier wrote:
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300
Is that a dump with rrdtool ? Doesn't look like it. You must save the MRTG data files in RRDtool format (a binary format) for Hobbit to recognize and graph them. The old text-file format used by MRTG is not recognized by Hobbit.
Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 12:22:45PM +0200, Christophe Truffier wrote:
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300
Is that a dump with rrdtool ? Doesn't look like it. You must save the MRTG data files in RRDtool format (a binary format) for Hobbit to recognize and graph them. The old text-file format used by MRTG is not recognized by Hobbit.
oh sorry, I've done «rrdtool info mrtg.master.eth0.rrd» to get these data. With «rrdtool dump» I get :
<!-- Round Robin Database Dump --> <rrd> <version> 0003 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1149251083 </lastupdate> <!-- 2006-06-02 14:24:43 CEST -->
<ds>
<name> ds0 </name>
<type> COUNTER </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 1.2500000000e+07 </max>
<!-- PDP Status -->
<last_ds> 364460851 </last_ds>
<value> 4.5913901320e+05 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> ds1 </name>
<type> COUNTER </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 1.2500000000e+07 </max>
<!-- PDP Status -->
<last_ds> 364460851 </last_ds>
<value> 4.5913901320e+05 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 02:29:45PM +0200, Christophe Truffier wrote:
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh
Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 02:29:45PM +0200, Christophe Truffier wrote:
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh
I've just try:
grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
...maybe I have to give hobbitgraph.sh another data ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 03:49:06PM +0200, Christophe Truffier wrote:
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.shI've just try:
grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
Add a REQUEST_URI="" to that command, then.
Regards, Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 03:49:06PM +0200, Christophe Truffier wrote:
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh I've just try:grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
Add a REQUEST_URI="" to that command, then.
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 ?
Thanks for help
-- Christophe Truffier Pack-Solutions
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
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
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
Jeff Newman wrote:
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)
Yes I know that I could recompile to get hobbit work with 1.2.11 rrdtool version but I ain't got time to do it (that's why I didn't spend to much time for this problem). I'll wait, maybe next hobbit version will work with ?! :)
By the way, I still have something strange, IN and OUT datas are the same... I'll take a look at my mrtg config file and get back here if nothing get better.
Thanks
-- Christophe Truffier Pack-Solutions
participants (4)
-
ctruffier@pack-solutions.com
-
henrik@hswn.dk
-
jeffnewman75@gmail.com
-
tlp-hobbit@holme-pedersen.dk