[Bug 440691] [NEW] CHECK_INTERVAL in /etc/init.d/monit overrides configuration

alexey.verkhovsky alexey.verkhovsky at gmail.com
Fri Oct 2 16:29:24 UTC 2009


Public bug reported:

Binary package hint: monit

Ubuntu 9.04
monit 1:4.10.1-4

1. In /etc/init.d/monitrc, write "set daemon 10"
2./etc/init.d/monit restart

Expected: monit checks state every 10 seconds 
Actual: it does so every 3 minutes

Reason:
/etc/init.d/monit starts monit daemon with -d $CHECK_INTERVAL, where $CHECK_INTERVAL is set to 180, and a comment there says:
# We default to 180s (3min) check intervals
In reality, it doesn't DEFAULT to 180s, it overrides configuration with 180s, which causes weirdness, if you don't know about this (monit being what it is, it can be hard to notice). One example that had a really bad impact in my case was the fact that any configuration statement that talks in terms of cycles meant 18 times longer durations than intended.

** Affects: monit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
CHECK_INTERVAL in /etc/init.d/monit overrides configuration
https://bugs.launchpad.net/bugs/440691
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list