Skip to content

Instantly share code, notes, and snippets.

@bgreenlee
Last active December 11, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgreenlee/4652533 to your computer and use it in GitHub Desktop.
Save bgreenlee/4652533 to your computer and use it in GitHub Desktop.
Poor man's Nagios
# logtail from logcheck (http://logcheck.org/)
*/15 * * * * /usr/sbin/logtail /path/to/some/log/file.log | egrep "WARN|ERROR|Exception" | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment