Tag Archives: cron

Randomize cron entries with python.

I use this to prevent network brownouts when heavy bandwidth usage is expected. The script only randomizes the minute and hour fields of the cron entry, but can very easily be modified so that it randomizes all or selected entries. The script also only modifies entries that use the commands in the target list – [...]
Posted in Programming | Also tagged , | Leave a comment

Check crond service with nagios.

I was surprised that nagios plugins didn’t come with a pre-packaged check_crond command! Anyway, here is a quick way to do it using NRPE. Add the command definition in command.cfg. define command{ command_name check_crond command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -t 90 -c check_crond } Add the service definition to an existing host. define service{ use [...]
Posted in Nagios, Webhosting | Also tagged | Leave a comment