Is there a tool to graph, analyze and help optimize crontab execution?

To clarify, I'm thinking of a tool which would generate a graph of when cron jobs are executed, and help the sysadmin reorganize them smartly.

link|improve this question

56% accept rate
I can't think of anything off the top of my head, but it's Bank Holiday monday tomorrow, so I could have a go at writing one. – Tom O'Connor Apr 8 at 9:54
feedback

3 Answers

The only thing I've done is move cron jobs into a structured job scheduler in order to graph dependencies and gain visibility into the effects downtime windows.

link|improve this answer
That looks interesting but quite heavy to implement. – Raphink Nov 28 '11 at 13:36
It was for a 1200-line crontab I was using... but yes, very heavy. I'd like to see something lighter-weight as well. – ewwhite Nov 28 '11 at 13:38
feedback

Some sort of framework to assign a unique ID to each cron job and correlate that in the log file(s), and/or logging to a specific location to record runtime information (as opposed to the normal output log). It's not going to be trivial however you design it, but for small systems it is easy to eyeball this from looking at your crontabs and log files.

I assume you're not talking about small systems, though.

link|improve this answer
I like this idea and it could be relatively easily implemented in cron itself rather than a wrapper/framework. Just md5sum the crontab line for the unique identifier and track SIGCHILD to log stop times. – Mark Wagner Apr 3 at 7:47
feedback

Sounds like this is the functionality you'd like http://www.phpclasses.org/package/6673-PHP-Parse-crontab-schedule-and-generate-Gantt-charts.html

I can't vouch for the above, it is just the results of some web searching.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.