Hi, you can try this config

check process simpleHelp matching "shelp.proxy.ProxyServerStartup"
     alert <[email protected]>
     start program = "/etc/init.d/simplehelp start"
     stop program = "/etc/init.d/simplehelp stop"

assuming that your process always containst this string shelp.proxy.
ProxyServerStartup

Thanks!

2014-09-17 15:40 GMT-03:00 chinaboy <[email protected]>:

> After using monit procmatch, below is what I got. Not sure where to go from
> here.
>
> ./jre1.6.0_16/bin/java -Xmx384m -Djava.net.preferIPv4Stack=true -cp
>
> lib/secure_shelp.jar:lib/secure_utils.jar:lib/secure_nlink.jar:lib/mail.jar:lib/activation.jar
> -Djava.awt.headless=true SecureRunner1
> com.aem.shelp.proxy.ProxyServerStartup
>
> Thanks
>
>
>
> --
> View this message in context:
> http://nongnu.13855.n7.nabble.com/Monit-won-t-monitor-my-program-tp189931p189941.html
> Sent from the monit-general mailing list archive at Nabble.com.
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to