[mrtg] Re: Log file corrupt or not in sorted order

Gearoid_King at dell.com Gearoid_King at dell.com
Thu Nov 9 10:24:13 MET 2000



Is there anyone out there who has NEVER had these errors running MRTG on
Linux??

Has anyone seen disadvantages to running MRTG and web-publishing on FreeBSD?

Thanks Brian, Isaac and Christopher for your replies. I'm using MRTG 2.9.4
and don't use forking, so unfortunately the fix below won't work.

It sounds like a lot of people out there have been smitten with FreeBSD!
The RH Linux system I've set up is in use specifically for MRTG server
monitoring and statistic publishing... a switch to FreeBSD isn't out of the
question... and I had just completed the transition from NT to Linux (doh!).

Thanks & Regards,

Gearoid King, CNE5, 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> 

-----Original Message-----
From: Christopher Poetzel [mailto:cpoetzel at achilles.ctd.anl.gov]
Sent: 08 November 2000 14:50
To: Gearoid_King at exchange.dell.com
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Log file corrupt or not in sorted order



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


--
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