check_logs deleting source log?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
epx998
Posts: 31
Joined: Mon Nov 21, 2011 3:51 pm

check_logs deleting source log?

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_logs deleting source log?

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked