I’ve been working on a puppet cron analyzer tool, which is coming along nicely:
Its goal was to provide an analysis/map of cron runtimes, but it turns out that simply regex searching across all crons in an infrastructure is the most useful part. (and it works now)
Also, to build this, I had to create a library to convert cron entries (like what you’d see on-disk), into normalized entries (with only lists of numbers). Cronlib also supports dumping a list of all timestamps a cron will run at (huge list!), based on a days argument. See cron-analyze.py for a nice way to create a time_map, to avoid storing duplicates of these huge lists.
More to come as puppet-cron-analyzer progresses.
No Comments yet... be the first »