Hi Rajesh,

this is an interesting question. I came to Monit  from similar problems. For
some reasons some services did not start automatically in their runlevels.

 

I like the messages in the beginning. So  I'm sure all is fine. But I
understand your point of view, too. If your services are never started with
the system but with monit the initial start is not an abnormal situation and
should not raise an alert. But how would you write this in the
configuration? Maybe one could implement some uptime condition like this:

 

check foobar apache with pidfile /var/run/foobar.pid

start program = "/etc/init.d/foobar start"

stop program  = "/etc/init.d/foobar stop"

if 3 restarts within 6 cycles and uptime > 2 min then 

alert

 

If one could deal with the uptime of a system this could be very usefull for
some other things.

 

Best regards,

Marco

 

From: [email protected]
[mailto:[email protected]] On
Behalf Of Rajesh Shanmugam
Sent: Wednesday, December 04, 2013 6:58 AM
To: [email protected]
Subject: Monit to not send alerts during bootup

 

Hi,

I use monits for controlling many of the services. During a system bootup
monit starts my services. The problem is even first time when it starts up
the services I get alerts. Is there someway I can make sure I do not receive
emails for the first few cycles when monit is restarted ?.

Thanks in advance for the help

 

Regards
Rajesh

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to