阅读背景:

如何在指定的时间间隔内删除文件(或类似文件)?

来源:互联网 

I am working on adding some nagios alerts to our system -- some of which will monitoring the rate of certain events hitting the nginx/apache logs (or parsing values from those logs.) The way I've approached the problem so far is with a simple shell script tail -f'ing the log for 25 seconds or so to a temporary file, killing the process, and then running awk, etc over the temp file. The goal here being to get a log "sample" over 25 seconds and then perform analysis.I am working on adding some nagios alerts to ou




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: