Add some random delay for sending mail status

to spread the load on the main email server
This commit is contained in:
Daniel Berteaud 2015-06-10 09:43:59 +02:00
parent 0949c28232
commit b2b43bb1d2
1 changed files with 2 additions and 2 deletions

View File

@ -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
}