[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] MRTG graphs
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] MRTG graphs
- From: Christophe Truffier <ctruffier (at) pack-solutions.com>
- Date: Fri, 02 Jun 2006 12:22:45 +0200
- Organization: Pack-Solutions
- References: <4444DDDF.9010807@pack-solutions.com> <4444EB1C.4090102@pack-solutions.com> <44450AF3.8030008@pack-solutions.com> <4445D3F2.6070303@holme-pedersen.dk> <4445EBFE.3000307@pack-solutions.com> <444611AB.2000506@holme-pedersen.dk> <44462848.30805@pack-solutions.com> <20060505072224.GB16694@hswn.dk> <445B490D.6060903@pack-solutions.com> <941506840606011458n6a32d2c9gab0827e79d0c70bd@mail.gmail.com> <20060602045516.GA18408@hswn.dk>
- User-agent: Thunderbird 1.5.0.2 (X11/20060516)
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