[mrtg] Spam: RE: .log files gets reset automatically

Cihan Subasi (Garanti Teknoloji) CihanS at garanti.com.tr
Mon May 26 08:27:58 CEST 2008



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)

[cid:013012406 at 26052008-3330]


________________________________
From: Steve Shipway [mailto:s.shipway at auckland.ac.nz]
Sent: Monday, May 26, 2008 2:20 AM
To: Cihan Subasi (Garanti Teknoloji); 'mrtg at lists.oetiker.ch'
Subject: RE: .log files gets reset automatically

Do you have any periodic cronjobs running on your server that look for (and delete) any and all *.log files?  If so, they'd be deleted, and the next run of MRTG would recreate them as empty.

If you do have such a job, severely... re-educate...  the person who wrote it, since doing a "find / -name *.log -exec rm {} \;" is just stupid coding.  It should be restricted to a specific tree that is known to be safe.

Steve

________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Cihan Subasi (Garanti Teknoloji)

For the last 2-3 months at midnight Central Time (GMT+6)  I started havind some of my .log files started to be reset without my intention. Is there a reason for that? I assumed first because my .log file size reaches a limit but some of the .log files arent't even 100K big.

What could be reason of having my .log files to reset as they are run first time? thanks

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.



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/20080526/24c5fb50/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: att2ab8b.gif
Type: image/gif
Size: 4830 bytes
Desc: att2ab8b.gif
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20080526/24c5fb50/attachment-0001.gif 


More information about the mrtg mailing list