[mrtg] rrd with MRTG

Chris Koester ckoester at concentric.net
Fri Jan 21 21:22:17 MET 2000


I have been using mrtg without rrdtool and it has been working great.
I
have been trying to setup rrdtool to work with mrtg and have been
running into problems erroring.   Below in information about what
I am running and the error I am getting.

Thanks in advance for any help.....

Chris

MRTG Version: 2.8.11

Option  useRRDTool Set:
UseRRDTool: Yes

# mrtg mrtg.cfg   (I AM GETTING THIS ERROR)
Illegal division by zero at mrtg line 1140.
#

MRTG FILE: (run/mrtg)
line 1137:     if (! -e $rrd) {
line 1138:           # create the rrd if it doesn't exist
line 1139:        my $now = time;
line 1140:          $now = int($now / ($$cfg{interval} * 60) ) *
($$cfg{interval} * 60);
          RRDs::create($rrd, '-b', $now, '-s', int($$cfg{interval} *
60),
                  "DS:ds0:$up_abs:600:U:U",
                  "DS:ds1:$up_abs:600:U:U",
                  "RRA:AVERAGE:0.5:1:600",
                  "RRA:AVERAGE:0.5:6:700",
                  "RRA:AVERAGE:0.5:24:775",
                  "RRA:AVERAGE:0.5:288:797",
                  "RRA:MAX:0.5:1:600",
                  "RRA:MAX:0.5:6:700",
                  "RRA:MAX:0.5:24:775",
                  "RRA:MAX:0.5:288:797");
          my $e = $RRDs::error;
          die "Cannot create logfile: $e\n" if $e;
    }



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list