Ok, of course, the minute I asked, is the minute I found... According to a comment on this blog entry [1], one can test the output of script:
"if failed /etc/init.d/tomcat status does not output 'And listening on' for 3 cycles then alert for 5 cycles and restart" I can therefore just make my own little script, test the average time and returning whatever I need. [1] http://blog.rimuhosting.com/2011/01/27/setting-up-monit-with-tomcat/ On 5 June 2014 10:11, Romain Pelisse <[email protected]> wrote: > Hi all, > > I'm considering using Monit to automatically restart a Java based app > running on top of JBoss when the app start suffering from OutOfMemorry or > just become sluggish. > > The best way to detect that is to actually react on a slow response time - > or at least a response time average that's rising. Is there an easy to do > that with monit ? Can someone simply "plug" a custom script/function to > define a new "failed" statement ? > > -- > Romain PELISSE, > *"The trouble with having an open mind, of course, is that people will > insist on coming along and trying to put things in it" -- Terry Pratchett* > Belaran ins Prussia (blog) <http://blog.wordpress.belaran.eu/> (... > finally up and running !) > -- Romain PELISSE, *"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" -- Terry Pratchett* Belaran ins Prussia (blog) <http://blog.wordpress.belaran.eu/> (... finally up and running !)
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
