monit-general
[Top][All Lists]
Advanced

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

Re: Not understanding 'Program Status Testing'


From: Paul Theodoropoulos
Subject: Re: Not understanding 'Program Status Testing'
Date: Wed, 23 Jul 2014 13:45:12 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 7/23/14 1:39 PM, Paul Theodoropoulos wrote:
I'd be awfully surprised if I've found a bug, but I'm fully at a loss at this point.

And no sooner than I wrote this, did I realize the error of my ways:

Was:
alert address@hidden with reminder on 5 cycle
alert address@hidden with reminder on 5 cycle
check program bucardo-monitor with path /usr/local/bin/bucardo.monitor
with timeout 3 seconds
if status = 0 then alert

NO! The alert declaration needs to be within the check!

check program bucardo-monitor with path /usr/local/bin/bucardo.monitor
with timeout 3 seconds
alert address@hidden with reminder on 5 cycle
alert address@hidden with reminder on 5 cycle
if status = 0 then alert

Now it works. Whew. PEBCAK.
-- 
Paul Theodoropoulos
www.anastrophe.com

reply via email to

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