bitnal
asked on
cron monitoring
Is there a way to get a report of which execution of a cron did not happen as planned?
Example: I have a cron job thats scheduled to execute every 5 minutes.
I would like to know if it did run once every 5th minute or did it execute for the first 4 instances and then on no new executions took place
Why I need this : I want to use this to monitor if a job is taking more than its scheduled time or hanging.
Is this approach correct?
Or is there a better way to do this?
Any pointer will be helpful.
cheers!
bitnal
Example: I have a cron job thats scheduled to execute every 5 minutes.
I would like to know if it did run once every 5th minute or did it execute for the first 4 instances and then on no new executions took place
Why I need this : I want to use this to monitor if a job is taking more than its scheduled time or hanging.
Is this approach correct?
Or is there a better way to do this?
Any pointer will be helpful.
cheers!
bitnal
have a look at the /var/cron/log file, that will tell you if a cronjob has failed / succeded
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or another approach is to log *.debug to well watched file