diff options
| author | Maximilian | 2014-12-10 14:09:01 +0100 |
|---|---|---|
| committer | Maximilian | 2014-12-10 14:09:01 +0100 |
| commit | afdd4806fcd15a02cd4caa74c252dc9db8455a21 (patch) | |
| tree | 536912a3299bbe4ea59795ff10e7f764e8636fd6 /monit/postfix.conf | |
| parent | 5e7fe4497f008969a00bda55c634ea20488dcb2d (diff) | |
| download | dotfiles-afdd4806fcd15a02cd4caa74c252dc9db8455a21.tar.gz | |
Added more config files.
Diffstat (limited to 'monit/postfix.conf')
| -rw-r--r-- | monit/postfix.conf | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
