I have a cron job that runs every morning that produces an output file when run successfully. I'd like to have a follow up process that verifies that the job executed properly or fire off a Nagios alert if it didn't.
I feel like I could make this work with a Nagios check_file_age service check that restricts the check to occur only once every morning through careful construction of the check_interval and check_period in the service def, but I'm wondering if there is a simpler way?
Best Answer
A couple of options spring to mind: