I have a bunch of "night shift scripts" to maintain a server. The problem is, the "action window", when those scripts may run is always different. Sometimes there's nothing going on for minutes and hours, sometimes the server crunching some data all night long. The scripts aren't only (but mostly) DB scripts.
One developer came with an idea of implementing a daemon. This daemon should be checking the server conditions, and if there will be enough free resources found, some scripts would be started.
I find this idea interesting (not to say seducing ;-) ), but won't really reinvent the wheel. Are there any proven patterns? Some Shinken or Nagios plugins maybe?