check process lighttpd
with pidfile "/var/run/lighttpd.pid"
start program = "/etc/init.d/lighttpd start"
stop program = "/etc/init.d/lighttpd stop"
if failed host 46.43.49.65 port 80 protocol HTTP and request '/index.html' hostheader localhost' then restart
if 5 restarts within 5 cycles then alert and timeout
group web
Specifically the Alert and time out section. The alerts we send to mmonit.