monit-general
[Top][All Lists]
Advanced

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

[monit] Using Monit with Lotus Domino


From: John Doe
Subject: [monit] Using Monit with Lotus Domino
Date: Mon, 27 Apr 2009 15:07:05 +0300

Hi. I am evaluating the possibility to monitor Lotus Domino web server with Monit. The problem is that Lotus Domino doesn’t use PID-files. And to make matters more difficult one server has typically tens of http processes and 100 – 200 other processes. Here’s a short exerpt from the ps aux|grep notes:

  notes    10231  0.0  2.9 732360 116136 ?     S    04:00   0:00 /opt/lotus/notes/latest/linux/amgr -e 1

  notes    10232  0.0  2.9 732360 116136 ?     S    04:00   0:00 /opt/lotus/notes/latest/linux/amgr -e 1

  notes    10235  0.0  0.5 726488 20376 ?      S    04:00   0:00 /opt/lotus/notes/latest/linux/web

  notes    10238  0.0  5.3 877068 208720 ?     S    04:01   0:00 /opt/lotus/notes/latest/linux/http

  notes    10239  0.0  5.3 877068 208720 ?     S    04:01   0:00 /opt/lotus/notes/latest/linux/http

  notes    10240  0.0  5.3 877068 208720 ?     S    04:01   0:00 /opt/lotus/notes/latest/linux/http

  notes    10241  0.0  5.3 877068 208720 ?     S    04:01   0:00 /opt/lotus/notes/latest/linux/http

  notes    10257  0.0  7.7 748236 300524 ?     S    04:01   0:05 /opt/lotus/notes/latest/linux/server

  notes    10259  0.0  1.2 727120 49444 ?      S    04:01   0:00 /opt/lotus/notes/latest/linux/router

  notes    10260  0.0  1.3 726000 51544 ?      S    04:01   0:01 /opt/lotus/notes/latest/linux/mtc

  notes    10264  0.0  1.3 726000 51544 ?      S    04:01   0:00 /opt/lotus/notes/latest/linux/mtc

  notes    10265  0.0  1.3 726000 51544 ?      S    04:01   0:00 /opt/lotus/notes/latest/linux/mtc

  notes    10266  0.0  1.2 727736 47068 ?      S    04:01   0:00 /opt/lotus/notes/latest/linux/smtp

 

Also http processes are typically started 30 seconds after starting the server. However Domino uses a lock file /var/lock/subsys/domino.

 

I have tried something like:

check host TESTSERVER with address 127.0.0.1

  start program  "/etc/init.d/domino start"

  stop program  "/etc/init.d/domino stop"

  if failed url

       http://127.0.0.1/check.nsf

       and content != '.*SERVER OK.*'

       timeout 10 seconds 5 cycles

  then alert

 

But the problem is that the server is intentionally shut down nightly because of the backups.

 

I have thought of something like (pseudocode follows):

  if server_is_down and lock_file_exists

    then restart_server

 

but I can’t figure out how to do it using Monit. I want Monit to restart the server (and send an alert) if Domino http server is down _and_ the lock file exists. Any suggestions? BM



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4036 (20090427) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

reply via email to

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