Add some random delay for sending mail status
to spread the load on the main email server
This commit is contained in:
parent
0949c28232
commit
b2b43bb1d2
|
@ -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…
Reference in New Issue