Hello,

I hope you don't mind if I raise a few questions here.

(1) In the attached config snippet, the pidfile location is hardcoded in
three separate places:

  check process testapp_pen
    with pidfile /u/apps/testapp/shared/pids/pen.pid
    start program = "/usr/bin/pen -u Rtestapp -p 
/u/apps/testapp/shared/pids/pen.pid
                    -C 127.0.0.1:9999 127.0.0.1:10000
                    -r -x 2 127.0.0.1:10001:1:1 127.0.0.1:10002:1:1"
    stop program  = "/bin/bash -c 'kill -s SIGTERM `cat 
/u/apps/testapp/shared/pids/pen.pid`'"
    if totalmem is greater than 10.0 MB for 2 cycles then restart
    if totalcpu is greater than 50% for 2 cycles then restart
    if 2 restarts within 3 cycles then timeout
    group testapp

Can I simplify this to remove the duplication of the pidfile path?

(2) What's the reason why /etc/monitrc cannot be a symlink? monit refuses to
start if this is the case.

(3) Is there any way in the web interface to perform group operations? In
particular I'd like to be able to do "monit restart -g testapp" via the web,
but I haven't found a way to do this.

Many thanks,

Brian.


_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to