[hobbit] MRTG graphs

Christophe Truffier ctruffier at pack-solutions.com
Fri Jun 2 12:22:45 CEST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: master.eth0.png
Type: image/png
Size: 18743 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060602/c05edf07/attachment.png>


More information about the Xymon mailing list