On Fri, Jun 13, 2008 at 1:01 PM, Brian Candler <
address@hidden> wrote:
On Fri, Jun 13, 2008 at 11:33:21AM +0200, pierrick grasland wrote:
> I encounter this problem to on debian, so I don't think it's from the
> packaging.
Did you use a debian package, or did you compile monit yourself from source?
If the former, then it sounds very much like a packaging problem.
Furthermore, what exact version of monit are you running?
Looking at the source code of 4.10.1, I see that exactly the same logic is
used for reading the config file with or without -t. The difference the -t
flag makes is to *stop* monit from running after it has read the config
file.
...
if(! parse(Run.controlfile)) {
exit(1);
}
/*
* Stop and report success if we are just validating the Control
* file syntax. The previous parse statement exits the program with
* an error message if a syntax error is present in the control
* file.
*/
if(Run.testing) {
LogInfo("Control file syntax OK\n");
exit(0);
}
...
Regards,