check process apcupsd with pidfile /var/run/apcupsd.pid start program = "/etc/init.d/apcupsd start" stop program = "/etc/init.d/apcupsd stop" if 5 restarts within 5 cycles then timeout if failed host 192.168.0.2 port 3551 type TCP then restart group services