set daemon 120 set logfile syslog facility log_daemon set mailserver localhost set eventqueue basedir /var/monit slots 100 set mail-format { from: monit@ } set alert check system if loadavg (1min) > 5 then alert if loadavg (5min) > 3 then alert if memory usage > 90% for 5 cycles then alert if cpu usage (user) > 70% then alert if cpu usage (system) > 30% then alert if cpu usage (wait) > 30% then alert if loadavg (15min) > 450 then exec /usr/local/sbin/ister-monit-reboot check process sshd with pidfile /var/run/sshd.pid start program = "/etc/init.d/ssh start" stop program = "/etc/init.d/ssh stop" if totalmem > 150.0 MB for 5 cycles then restart if children > 50 then restart if 3 restarts within 5 cycles then timeout check process exim4 with pidfile /var/run/exim4/exim.pid start program = "/etc/init.d/exim4 start" stop program = "/etc/init.d/exim4 stop" if totalmem > 250.0 MB for 3 cycles then restart if failed host localhost port 25 protocol smtp within 5 cycles then restart if 3 restarts within 5 cycles then timeout check process syslogd with pidfile /var/run/syslogd.pid start program = "/etc/init.d/sysklogd start" stop program = "/etc/init.d/sysklogd stop" if 3 restarts within 5 cycles then timeout check process atd with pidfile /var/run/atd.pid start program = "/etc/init.d/atd start" stop program = "/etc/init.d/atd stop" if 3 restarts within 5 cycles then timeout check process cron with pidfile /var/run/crond.pid start program = "/etc/init.d/cron start" stop program = "/etc/init.d/cron stop" if 3 restarts within 5 cycles then timeout check process cpqarrayd with pidfile /var/run/cpqarrayd.pid start program = "/etc/init.d/cpqarrayd start" stop program = "/etc/init.d/cpqarrayd stop" if 3 restarts within 5 cycles then timeout check device rootfs with path /dev/cciss/c0d0p2 if space usage > 75% then alert if inode usage > 75% then alert check device var with path /dev/mapper/ister-var if space usage > 75% then alert if inode usage > 75% then alert include /etc/monit/conf.d/*