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
check_logs deleting source log?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_logs deleting source log?
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.
Unless the files you were monitoring were located at
/tmp/check_log.XXXXXXXXXX
It doesn't seem possible that this script caused the deletion.