zufallsheld - a tech blog

Python script to check last exec time and exit code of script

I needed a script that checks:

  • whether a cronjob ran at its determined date (that means it runs regularly)
  • if the cronjob ran successfully

It should also be monitor-able via Nagios. That means, it should provide a meaningful output for when something went wrong with the cronjob, e.g. “CRITICAL …

more ...

© 2013 · Contact · Privacy Statement · Legal Disclosure - Powered by pelican-bootstrap3 and Pelican