I noticed that distinct monit notification mails were getting detected as duplicates; this can happen if a few services are restarted in the same polling period, for example, and is due to monit using only the UNIX time to build Message-Id headers.

Here's a suggested patch to make those headers somewhat more unique:

diff -r1.62 sendmail.c
190c190
<     do_send(&S, "Message-id: <[EMAIL PROTECTED]>\r\n", time(NULL), 
S.localhost);
---
> do_send(&S, "Message-id: <[EMAIL PROTECTED]>\r\n", time(NULL), random(), S.localhost);


Best wishes,

-Steve


_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to