[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: check program <unique-name> with path "/path/to/my/script.sh" does n
Re: check program <unique-name> with path "/path/to/my/script.sh" does not work
Wed, 7 Dec 2011 20:55:56 +0100
the "check program" requires monit 5.3 or newer - the 4.10.1 won't recognize
it. The configuration snip which you provided looks OK so monit 5.3+ should
parse the configuration without problem - please can you provide full
configuration? Was the error reported by 5.3 the same as 4.10.1? Are you sure
you passed the configuration really to monit 5.3+ or is it possible that it was
old binary? (you can verify the version with "monit -V").
Note that the "check program" also requires "if status" test, otherwise the 5.3
reports the error like this:
monit: Error: 'check program program_timeout' is incomplete; Please add an
'if status != n' test
=> the correct configuration should look like this:
check program program_timeout with path "/usr/bin/true"
if status == 1 then alert
On Dec 7, 2011, at 3:27 PM, YUM System Administration wrote:
> I am trying to setup a check with "check program" in the monit
> configuration file, just as described in the Online-Manual at
> Unfortunately monit seems not to recognize the configuration directive.
> When I check the modifications done to the config file with "monit -t",
> I get:
> "/etc/monit/monit.d/rc.newsletter_transmitter:22: Error: syntax error
> Of course I know that "unique_descriptor" is just the examples name, but
> I guess it should work though.
> The config looks like this:
> check program uniq_descriptor with path "/path/to/my/script.sh"
> I tried this with monit 4.10.1 from debian lenny, and with monit 5.3.1
> from the precompiled downloads. Both versions don't accept my setup.
> Can someone help?
> Hans Ulrich
> To unsubscribe: