X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fplugins%2Fnotify_by_email;h=959db267b5d2412369a5af634a9723991e87e1f1;hp=ad0dcc7e5954a1b99a3ad9bfe8bcb5c1f5bde476;hb=e820134d38c3b7470ea5112f40a6dc967f039878;hpb=b22ce4895ef1e9723a02061f7293e528cfbf9754 diff --git a/modules/private/monitoring/plugins/notify_by_email b/modules/private/monitoring/plugins/notify_by_email index ad0dcc7..959db26 100755 --- a/modules/private/monitoring/plugins/notify_by_email +++ b/modules/private/monitoring/plugins/notify_by_email @@ -26,6 +26,4 @@ else subject="** $NOTIFICATION_TYPE Service Alert: $HOST_ALIAS/$SERVICEDESC is $SERVICESTATE **" fi -# sendwait waits for sendmail to finish its job, otherwise it continues in the -# background and gets killed too early -echo "$message" | MAILRC=/dev/null mail -r "naemon@immae.eu" -n -Ssendwait -s "$subject" "$CONTACT" +echo "$message" | MAILRC=/dev/null mail -r "$ADMINEMAIL" -n -s "$subject" "$CONTACT"