[mrtg] Re: RRDTool with MRTG Error Message

Alex Ponnath alexp at iccinternet.com
Thu Jul 25 07:18:22 MEST 2002


It took me some time to set this up and I even tried a new install with
same problems.

This is what I get in the log when I run mrtg with debug(log) and the 1
line moved up

 ./mrtg-debug sjocore
--log: Called:
RRDs::tune(/export/home/mrtg/sjo/216.158.204.37_63.251.231.130.rrd -a
ds0:12500000 -a ds1:12500000 -d ds0:COUNTER -d ds1:COUNTER)
--log: Called:
RRDs::update(/export/home/mrtg/sjo/216.158.204.37_63.251.231.130.rrd,
'1027574036:3859125303:1887456640')
--log: Called: RRDs::last()
--log: Called:
RRDs::fetch(/export/home/mrtg/sjo/216.158.204.37_63.251.231.130.rrd,'AVE
RAGE','-s',4413396878844204344,'-e',4413396878844204344)
ERROR: Cannot 'fetch'
/export/home/mrtg/sjo/216.158.204.37_63.251.231.130.rrd: start time: did
you really mean month 5477688?
# 

Can anyone put some give me some inside what the problem might be.. I am
running this on a solaris 9 system.

Thanks

Alex


-----Original Message-----
From: Rainer Bawidamann [mailto:rainer.bawidamann at web.de] 
Sent: Saturday, July 13, 2002 4:14 AM
To: mrtg ml
Subject: [mrtg] Re: RRDTool with MRTG Error Message



> Error: cannot 'fetch'
> /usr/local/httproot/sjocore/xx.xx.xx.xx_xx.xx.xx.xx.rrd:
> Start time: did you realy mean month 53039784

Did you change the settings for the graphs (via graph*daily...)? Edit
the mrtg script and change the line

@main::DEBUG=qw();

at beginning of file, right after the first comment to read

@main::DEBUG=qw(log);

Now run mrtg once and check output (it contains the call to rrdtool that
gives the error above.

Hm, unfortunatly the call is only logged if it succeeds. You need to
reorder two lines in the script:

Search for

        my @fetch =
RRDs::fetch($rrd,'AVERAGE','-s',$lasttime,'-e',$lasttime);
        $e = RRDs::error(); 
        die "ERROR: Cannot 'fetch' $rrd: $e\n" if ($e);
        debug('log', "Called:
RRDs::fetch($rrd,'AVERAGE','-s',$lasttime,'-e',$lasttime

Move the line starting with "debug" right behind the line with
"RRDs::fetch" (that is the call to rrdtool). Now set the 'log' debug
switch as shown above and run mrtg. Mail it here if it doesn't tell you
anything.

Rainer

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list