Hello,

the "not" option was added in Monit-4.9 ... changelog excerpt:

--8<--
* The ALERT statement was extended by the possibility to
  negate the optional event filter.
  Syntax:
      [set] alert <mail-address> not '{' <event>... '}'
  Example:
    set alert us...@domain but not on { restart }
    Will send all alerts to us...@domain for all services and
    events except the restart event. Note that noise words
   'but' and 'on' are optional.
--8<--


4.8.1 doesn't support the "not" option


Martin



On Sep 16, 2009, at 1:12 AM, Alan AZZERA wrote:

Hello.

I'm new to Monit, thus I'm new on this list. I googled, searched in
the archives, but I did't find any clue for solving my problem. I'm
using Debian Etch (will be soon upgraded to Lenny), and there's a
clause in my monitrc preventing Monit to start :
set alert my.em...@mycompany.tld not { instance }

I always get an error in syslog :
Sep 16 00:32:08 xxxxxx monit: /etc/monit/monitrc:85: Error: syntax error 'not'

It seems weird, since the keyword 'not' is officially supported by
Monit, according to the manual. 'but not' is not much appreciated too,
since the syntax error is now on 'but'. Without any restriction, Monit
works like a charm !

On Etch, Monit's version is 4.8.1.

Thank you in advance for your patience an answers, I apologize in
advance if I missed something obvious...

Best regards,

Al.


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to