[hobbit] MRTG graphs

Thomas tlp-hobbit at holme-pedersen.dk
Wed Apr 19 17:00:27 CEST 2006


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 ?



More information about the Xymon mailing list