add mail notification
diff --git a/src/checks.c b/src/checks.c
index 27a23b2..1cda9d4 100644
--- a/src/checks.c
+++ b/src/checks.c
@@ -20,6 +20,7 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
+#include <stdarg.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
@@ -294,6 +295,7 @@
(check->health >= check->rise) ? (s->uweight ? "UP" : "DRAIN") : "DOWN");
Warning("%s.\n", trash.str);
+ Emaila("%s \n", trash.str);
send_log(s->proxy, LOG_NOTICE, "%s.\n", trash.str);
}
}