On 13. juni. 2008, at 13.48, pierrick grasland wrote:

It's a change made previously, which remove /etc/monit/monitrc from default location. So, it's not bug (but I can't find in the changelog when it was made (somewhere between 4.8.2 and 4.10). When using debian etch package, /etc/monit/monitrc was allowed, but when I compile it, it was not, and I search for it.

This was introduced in 4.10. The change-log entry is

* Allow to set the location of monitrc using the 'configure -- sysconfdir'
  option during monit compilation. Thanks to Klaus Heinz for patch.

AFAIK this was a patch provided by a package maintainer to allow setting the system location of the monitrc control file.

Brian Candler is right about that the same monitrc location code[1] is used with or without the -t switch to monit. So the OP's report that monit -t works but not monit does not seem possible, unless a pre- packaged version of monit where used with some internal changes.

[1] See file.c:File_findControlFile()


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

Reply via email to