monit-general
[Top][All Lists]
Advanced

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

Re: syntax error - alert


From: Jan-Henrik Haukeland
Subject: Re: syntax error - alert
Date: Tue, 23 Jan 2007 18:32:53 +0100

On 23. jan. 2007, at 17.18, Jose Raul Baron wrote:

 check host blablabla with address 999.999.999.999
     if failed port 21 protocol ftp with timeout 15 seconds then
        ALERT address@hidden MAIL-FORMAT { from: address@hidden }

Alert is a statement defining the alert to be sent for just one service, but since alert also is an action the statement should say:

 check host blablabla with address 999.999.999.999
     if failed port 21 protocol ftp with timeout 15 seconds then alert
     ALERT address@hidden MAIL-FORMAT { from: address@hidden }


It may look confusing and an alternative is to define a global alert which may be more clear:

set address@hidden MAIL-FORMAT { from: address@hidden }

 check host blablabla with address 999.999.999.999
     if failed port 21 protocol ftp with timeout 15 seconds then alert

Jan-Henrik






reply via email to

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