[mrtg] Re: Log file corrupt or not in sorted order
Christopher Poetzel
cpoetzel at achilles.ctd.anl.gov
Wed Nov 8 15:50:00 MET 2000
Dear Gearoid_King,
what version of mrtg are you running. i had this same problem when i
tried to switch to mrtg2.9.2 and was running the forking option. is
this the case with you. anyway, tobi worked out some fixes for me and
they are as follows
modify MRTG_lib.pm line 1145 ff as follows
if ($cfgfile ne '&STDOUT'){
open (CFGOK,">$cfgfile") or die "ERROR: writing $cfgfile.ok: $!";
}
and
if ($cfgfile ne '&STDOUT'){
print CFGOK "$host\t$method\t$key\t".
$$confcache{$host}{$method}{$key},"\n";
} else {
print "$host\t$method\t$key\t".
$$confcache{$host}{$method}{$key},"\n";
}
mrtg line 1579:
$lasthost = $host;
storeincache($confcache,$host,$method,$key,$value);
}
close $h;
}
these two changes fixed my forking problem which was causing the same
errors that you were getting. Once again, this was for mrtg-2.9.2 and i
thought tobi was going to fix this and did in version 2.9.4. Possibly
you just want to upgrade?
later
chris poetzel
cpoetzel at anl.gov
argonne national lab
On Wed, 8
Nov 2000 Gearoid_King at dell.com wrote:
>
> Hi again,
>
> I'm having problems with what sounds like a common problem on Linux (RH 6.2
> in my case). It happens when trying to run MRTG and the error is along the
> lines of "....log file corrupt or not in sorted order... the backup log file
> was invalid aswell".
>
> I've checked out the archives and have seen a few posts regarding this
> error. Obviously there's a lot of people out there who have fixed this
> error, but I've only seen a few posts short.
>
> I've verified that the file system is OK (no problems).
> Calls to the devices are not falling over one another and generally there
> are no other problems.
>
> Someone mentioned moving to FreeBSD for I/O reliability... would you like to
> share your thoughts on this with me, as I've no exposure here.
>
> Suggestions/solutions would be greatly appreciated,
>
> Regards,
>
> Gearoid King, CNE, MCSE
> Dell EMF Server Engineer
>
> Phone: +353 (0)61 486545
> Mobile: +353 (0)87 2958303
> Gearoid_King at Dell.com <mailto:Gearoid_King at Dell.com>
>
> --
> 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