Add some random delay for sending mail status

to spread the load on the main email server
tags/smeserver-zabbix-agent-0.4.3-1 0.3.8_el5
Daniel Berteaud 10 years ago
parent 0949c28232
commit b2b43bb1d2
  1. 4
      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
}

Loading…
Cancel
Save