From afdd4806fcd15a02cd4caa74c252dc9db8455a21 Mon Sep 17 00:00:00 2001 From: Maximilian Date: Wed, 10 Dec 2014 14:09:01 +0100 Subject: Added more config files. --- monit/postfix.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 monit/postfix.conf (limited to 'monit/postfix.conf') diff --git a/monit/postfix.conf b/monit/postfix.conf new file mode 100644 index 0000000..83ec467 --- /dev/null +++ b/monit/postfix.conf @@ -0,0 +1,12 @@ +check process postfix with pidfile /var/spool/postfix/pid/master.pid + GROUP mail + start program = "/etc/init.d/postfix start" + stop program = "/etc/init.d/postfix stop" + if cpu > 60% for 2 cycles then alert + if cpu > 80% for 5 cycles then restart + if totalmem > 200.0 MB for 5 cycles then restart + if children > 250 then restart + if loadavg(5min) greater than 2 for 8 cycles then stop + if failed host localhost port 25 type tcp protocol smtp + with timeout 15 seconds then alert + if 3 restarts within 5 cycles then timeout -- cgit v1.2.3