# tomcat5 monit-cn template check process tomcat5 with pidfile "/usr/share/tomcat5/temp/tomcat5.pid" start program = "/etc/init.d/tomcat5 start" stop program = "/etc/init.d/tomcat5 stop" if failed host 127.0.0.1 port 8081 protocol http with timeout 15 seconds then restart if children > 250 then restart