summaryrefslogtreecommitdiff
path: root/monit/postfix.conf
blob: 83ec467919dc66018e59f2406008be71a5eeba4a (plain)
1
2
3
4
5
6
7
8
9
10
11
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