Skip to content

Instantly share code, notes, and snippets.

@flores
Created April 5, 2011 22:00
Show Gist options
  • Save flores/904673 to your computer and use it in GitHub Desktop.
Save flores/904673 to your computer and use it in GitHub Desktop.
l:~/agent-plugins# ./log_freshness.py
Usage: ./log_freshness.py <log file to check>
l:~/agent-plugins# ./log_freshness.py /var/log/apache2/access.log
status ok everything looks good, modified 163 seconds ago
l:~/agent-plugins# ./log_freshness.py /var/log/apache2/error.log
status err /var/log/apache2/error.log not modified in 2745 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment