Linux

check_log.sh

Description:

./check_log.sh

Current Version

2

Last Release Date

2011-06-20

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

Project Notes
Often I needed to check log files for a keyword. So I wrote a simple bash script to do that plus integrate with nagios and perfdata so it also generate graphic. The script is based on tail -f and grep on the logfile with nohup command, like: nohup tail -f $LOG_FILE |grep --line-buffered "$VAR" > "$TMP" & I recommend calling the check each 5 minutes. Example usage: ./check_log.sh
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
162,488