monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] A few config questions


From: Brian Candler
Subject: [monit-dev] A few config questions
Date: Mon, 21 Apr 2008 10:17:27 +0100
User-agent: Mutt/1.5.11

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]