Hello everyone, 

I was wondering if there's a way to do something like this:

check process something with pidfile /var/run/something.pid
  start program = "/my/start_program"
  stop program = "/my/stop_program"

  ... tests here ...
  if 3 restarts within 5 cycles then exec "/bin/bash -c 'kill -9 `cat
/var/run/something.pid`'"

That is apparently invalid syntax (seems that the if X in Y cycles syntax
only supports timeout). Is that true? If so, is there another way to do the
above?

Thanks, 
Dave Myron
-- 
View this message in context: 
http://www.nabble.com/If-x-restarts-within-y-cycles-then-exec---tp16473387p16473387.html
Sent from the monit-general mailing list archive at Nabble.com.



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to