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
participants (3)
-
ctruffier@pack-solutions.com
-
henrik@hswn.dk
-
tlp-hobbit@holme-pedersen.dk