[mrtg] log file was corrupt or not in sorted order

Prib Pavel p.prib at decros.cz
Thu Feb 1 14:41:43 MET 2001


Hello all,

I am run it on FreBSD, ver. 4.2, use mrtg-2.9.7 and squid-2.3+enable-snmp.

My mrtg cgf file /usr/local/etc/mrtg/squidlru.cfg :

###

WorkDir:        /usr/local/mrtg/squid
IconDir:        /usr/local/mrtg/squid/images
LoadMIBS:       /usr/local/etc/squid/mib.txt

WriteExpires:   YES
MaxBytes[_]:    512000000

#########################################################
# cachePerf.cacheSysPerf.cacheCurrentLRUExpiration
# .1.3.6.1.4.1.3495.1.3.1.8
#########################################################

Target[LRU]:
1.3.6.1.4.1.3495.1.3.1.8&1.3.6.1.4.1.3495.1.3.1.8:public at localho
st:3401

Title[LRU]:     LRU Expiration
PageTop[LRU]:   <H1>Cache Statistics: LRU Expiration</H1>

YLegend[LRU]:           days
ShortLegend[LRU]:       days

Legend1[LRU]:   cachePerf.cacheSysPerf.cacheCurrentLRUExpiration
Legend2[LRU]:
Legendi[LRU]:  LRU-E
Legendo[LRU]:

# max is 365
MaxBytes[LRU]:  365

Options[LRU]:   gauge nopercent

###

i am monitoring (crontab) squid - LRU 

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/mrtg
/usr/local/etc/mrtg/squidlru.cfg

and get these errors  

File: /usr/local/bin/mrtg
...
@main::DEBUG=qw(log);
...


root# /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.squid.lru.cfg
--log: Rateup ERROR: /usr/local/bin/rateup found lru's log file was corrupt
          or not in sorted order:
time: 981019466.Called /usr/local/bin/rateup /usr/local/mrtg/squid/ lru
98102093
6 -Z g 365 days, 6:03:00 365 days, 6:03:00 365 c #00cc00 #0000ff #006600
#ff00ff
 l [days] k 1000 i /usr/local/mrtg/squid/lru-day.png -365 -365 400 100 1 1 0
300
 0 4 1Rateup WARNING: /usr/local/bin/rateup could not read the primary log
file
for lru

Rateup ERROR: /usr/local/bin/rateup found lru's log file was corrupt
          or not in sorted order:
time: 981019414.Rateup WARNING: /usr/local/bin/rateup The backup log file
for lr
u was invalid as well
WARNING: rateup died from Signal 0
 with Exit Value 1 when doing router 'lru'
 Signal was 0, Returncode was 1

When lookin at these log files:

981019466 365 days, 6:03:00 365 days, 6:03:00
981019466 364 364 364 364
981016609 0 0 0 0
981016500 0 0 0 0
981016200 0 0 0 0
981015900 0 0 0 0
981015600 0 0 0 0
981015300 0 0 0 0
981015000 0 0 0 0
981014700 0 0 0 0

I am examine next thread:

http://www.ee.ethz.ch/~slist/mrtg/msg05585.html
and 
http://www.ee.ethz.ch/~slist/mrtg/msg05588.html

and error it takes about.

Any help would be appreciated.

Thanks.

Sorry, my English is very very bad.


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