[mrtg] Re: RRDTool with MRTG Error Message

Rainer Bawidamann rainer.bawidamann at web.de
Sat Jul 13 13:13:34 MEST 2002


> 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



More information about the mrtg mailing list