Package: monit
Version: 1:5.1.1-1
Severity: normal

Monit on my squeeze system seemed to attempt to start when using
/etc/init.d/monit start
but whenever I check ps output it was not there.

Two things I tried or observed:
  I noticed that a file /root/.monit.id was being created
and that was pretty much the only evidence I could find that
the daemon had attempted to start

  Invoking monit directly from the command line using
the command:
  /usr/sbin/monit -d 180 -c /etc/monit/monitrc -s /var/lib/monit/monit.state
...seemed to work

By looking in /etc/init.d/monit on squeeze and lenny servers I could not
see where the -d 180 bit of argument was coming from on squeeze

Making changes to /etc/init.d/monit to bring in a couple of lines from
the older Lenny version of /etc/init.d/monit 
...seemed to do the trick

(a diff is attached but I describe here also)

I brought the following two lines over from Lenny version:
CHECK_INTERVALS=180
# We default to 180s (3min) check intervals

and then amended ARGS 
to be ARGS="-d $CHECK_INTERVALS -c $CONFIG -s /var/lib/monit/monit.state"
rather than the shorter
ARGS="-c $CONFIG -s /var/lib/monit/monit.state"

I find monit really useful and it is great to have it in Debian - many thank 
Stefan
for making it available.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.18-194.3.1.el5xen (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages monit depends on:
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libpam0g                      1.1.1-3    Pluggable Authentication Modules l
ii  libssl0.9.8                   0.9.8o-1   SSL shared libraries

monit recommends no packages.

monit suggests no packages.

-- Configuration Files:
/etc/default/monit changed:
startup=1

/etc/monit/monitrc changed:
include /etc/monit/conf.d/*.conf


-- no debconf information
18,19d17
< CHECK_INTERVALS=180
< # We default to 180s (3min) check intervals
30,31c28
< #ARGS="-c $CONFIG -s /var/lib/monit/monit.state"
< ARGS="-d $CHECK_INTERVALS -c $CONFIG -s /var/lib/monit/monit.state"
---
> ARGS="-c $CONFIG -s /var/lib/monit/monit.state"

Reply via email to