monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monit: Testing Alert path


From: Martin Pala
Subject: Re: [monit] Monit: Testing Alert path
Date: Thu, 03 Jul 2008 19:34:50 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313 Iceape/1.1.9 (Debian-1.1.9-5)

Monit has alert reminder option, which can do what you want ... if you will add check which will always fail and set reminder, the message will be send periodically to you.

Something like:

  check file alerttest with path /.nonexistent
    alert address@hidden with reminder on 500 cycles


The cycle length is given by the "set daemon ..." statement in seconds.


Martin




Dave Paper wrote:

On Jul 3, 2008, at 9:47 AM, David N. Blank-Edelman wrote:


On Jul 3, 2008, at 9:43 AM, Dave Paper wrote:

I'd like to be able to exercise the alert e-mail function ad hoc, not just when a trigger is fired off in a monit job config.

I'm a relative neophyte here, so this might be wrong, but how about just adding a stanza that tests for the presence of a test file. Then your command line trigger is "rm testfile". Would that work for you?


That's essentially what I'm doing now.

However, it's kind of dirty (having an extra job running just for that), and I'm looking at putting together some sort of automation testing/verification that alert messages are able to get through. Using something to externally test the alert system once per day and if no alert arrives, then something in the alert path is broken.

-dave

-- "The only contributions France has given to popular culture in the
last 50 years is Gerard Depardieu and that horny skunk." --SNL




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




reply via email to

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