Monit won't execute commands

view full story

http://unix.stackexchange.com – Running Monit 5.2.5 on Fedora 15 All standard alerts are working, however just cannot get exec to run anything. I have tried more than ten different configurations based on examples from the Monit Wiki. None of the exec commands do anything. Below is just one simple examples in an attempt to get 'something' working: check process tomcat6 with pidfile /var/run/tomcat6.pid start program = "/etc/init.d/tomcat6 start" stop program = "/etc/init.d/tomcat6 stop" if failed host localhost port 8080 then exec "/bin/bash -c '/bin/touch /tmp/monittest'" If I shutdown Tomcat an ale (HowTos)