log monitoring with rotation timestamp
Posted: Tue Jun 17, 2014 10:08 am
Hi,
I am using apache and configured logs with timestamp.
I am facing potential problem in adding these files Nagios file monitor
I don't know which is effective way I can use to add log files. same time it should not read old files.
error_log.1388707200 (this is unix system time stamp)
This file is not error_log that I can directly feed in the monitor.
Because it has timestamp error_log.{timestamp}
And the time stamp is changing everyday.
I am not sure if someone can point me out the directions how I can configure Nagios to point to the file with latest timestamp?
Thanks and regards,
Eric
I am using apache and configured logs with timestamp.
I am facing potential problem in adding these files Nagios file monitor
I don't know which is effective way I can use to add log files. same time it should not read old files.
error_log.1388707200 (this is unix system time stamp)
This file is not error_log that I can directly feed in the monitor.
Because it has timestamp error_log.{timestamp}
And the time stamp is changing everyday.
I am not sure if someone can point me out the directions how I can configure Nagios to point to the file with latest timestamp?
Thanks and regards,
Eric