set daemon 120 set logfile syslog set mailserver 10.4.1.10 # null mailer check process master with pidfile /var/spool/postfix/pid/master.pid start program = "/etc/init.d/postfix start" stop program = "/etc/init.d/postfix stop" alert postmaster check process sshd with pidfile /var/run/sshd.pid start program = "/etc/init.d/sshd start" stop program = "/etc/init.d/sshd stop" if failed host 10.4.1.73 port 22 protocol ssh then restart if 3 restarts within 5 cycles then timeout alert admin