[mrtg] .log files gets reset automatically

Steve Shipway s.shipway at auckland.ac.nz
Tue May 27 00:20:02 CEST 2008


Remember that if you delete all the .log files, and MRTG runs automatically every 5 minutes, then 5min after they are deleted the next run of MRTG will re-create them (empty).  If you also lose the *.old files then my guessis you have some over-zealous cleanup script running that deletes both *.log and *.old throughout the filesystem.  Check your periodic jobs that run around midnight.  This problem has occurred before for other users and been caused by this.

MRTG never deletes .log files, but it can create them.  So far, in my experience, whenever people find files disappearing then the problem is not an OS or hardware failure, but user error :)

Steve

________________________________
From: Cihan Subasi (Garanti Teknoloji) [mailto:CihanS at garanti.com.tr]
Sent: Monday, 26 May 2008 18:28
To: Steve Shipway; 'mrtg at lists.oetiker.ch'
Subject: Spam: RE: .log files gets reset automatically

Thanks for the warning, but wouldn't this  "find / -name *.log -exec rm {} \;" will delete all .log files. In my case, only few of them get deleted...Seems to me, it is either a disk failure or Os problem that is causing those files to get deleted, or mrtg is somehow delete my log file (also in the mean time .old file also gets deleted)

This message and attachments are confidential and intended solely for the individual(s) stated in this
message. If you received this message although you are not the addressee, you are responsible to keep the
message confidential. The sender has no responsibility for the accuracy or correctness of the
information in the message and its attachments. Our company shall have no liability for any changes
or late receiving, loss of integrity and confidentiality, viruses and any damages caused in
anyway to your computer system.


Bu mesaj ve ekleri, mesajda gonderildigi belirtilen kisi/kisilere ozeldir ve gizlidir. Bu mesajin muhatabi
olmamaniza ragmen tarafiniza ulasmis olmasi halinde mesaj iceriginin gizliligi ve bu gizlilik yukumlulugune
uyulmasi zorunlulugu tarafiniz icin de soz konusudur. Mesaj ve eklerinde yer alan bilgilerin dogrulugu ve
guncelligi konusunda gonderenin ya da sirketimizin herhangi bir sorumlulugu bulunmamaktadir. Sirketimiz
mesajin ve bilgilerinin size degisiklige ugrayarak veya gec ulasmasindan, butunlugunun ve gizliliginin
korunamamasindan, virus icermesinden ve bilgisayar sisteminize verebilecegi herhangi bir zarardan
sorumlu tutulamaz.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080527/4dccfcc4/attachment.html 


More information about the mrtg mailing list