Link to home
Start Free TrialLog in
Avatar of bitnal
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
Avatar of liddler
liddler
Flag of Ireland image

have a look at the /var/cron/log file, that will tell you if a cronjob has failed / succeded
ASKER CERTIFIED SOLUTION
Avatar of Gns
Gns

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or another approach is to log *.debug to well watched file