From b2b43bb1d2b48026fb84b14fc13731a53b9aad63 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 10 Jun 2015 09:43:59 +0200 Subject: [PATCH] Add some random delay for sending mail status to spread the load on the main email server --- root/etc/e-smith/templates/etc/crontab/zabbix_mail_stats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/templates/etc/crontab/zabbix_mail_stats b/root/etc/e-smith/templates/etc/crontab/zabbix_mail_stats index 6d05ae6..94f7c54 100644 --- a/root/etc/e-smith/templates/etc/crontab/zabbix_mail_stats +++ b/root/etc/e-smith/templates/etc/crontab/zabbix_mail_stats @@ -9,10 +9,10 @@ if ((${'zabbix-agent'}{'status'} || 'disabled') eq 'enabled'){ HERE if ((${'zabbix-agent'}{'StatusMail'} || 'disabled' ) eq 'enabled'){ - $OUT .=<<"HERE"; + $OUT .=<<'HERE'; # Send a status mail -*/15 * * * * root /var/lib/zabbix/bin/util_send_status_mail +*/15 * * * * root sleep $[ $RANDOM \% 120 ]; /var/lib/zabbix/bin/util_send_status_mail HERE }