Page 1 of 1

check_logs deleting source log?

Posted: Fri Feb 10, 2012 2:49 pm
by epx998
Hi All,

I am running the plugin check_log to alert if we get an OutOfMemory error. I run the test on 1 machine and inherit it to 2 others. Last night at the same time, all 3 source log files were removed off the systems. I can't determine if it was the test that did it or if there was another issue. Has anyone had this problem before?

Gavin

Re: check_logs deleting source log?

Posted: Mon Feb 13, 2012 11:00 am
by scottwilkerson
I don't see any way the script could have deleted the log files, the only line in the whole script that uses the rm command, is removing a temp file that it created.

Unless the files you were monitoring were located at
/tmp/check_log.XXXXXXXXXX

It doesn't seem possible that this script caused the deletion.