monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] alert clause gone wild


From: Martin Pala
Subject: Re: [monit] alert clause gone wild
Date: Wed, 24 Oct 2007 22:31:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 Iceape/1.1.4 (Debian-1.1.4-1)

Please read monit manual:
http://www.tildeslash.com/monit/doc/manual.php#alert_messages

The "set alert ..." is global for all services - you can use local/per-service alert when needed. You can also filter the events (the particular event type which is related to monit start/stop/reload is called "instance").

Martin


monit user wrote:
I am trying to add a secondary email for just certain conditions but that email is receiving an alert when I restart monit, too. I only want that address to receive mail for the specific situations where I use it. I can't figure out what I am doing wrong, never used this feature of monit before...

set alert address@hidden
set alert address@hidden

check system 10.0.0.10
  if loadavg (5min) > 5.0 2 times within 3 cycles then alert
alert address@hidden

...

check process httpd with pidfile /var/run/httpd.pid
   if failed host 10.0.0.10 port 80 then alert
alert address@hidden



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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]