monit-general
[Top][All Lists]
Advanced

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

setting timeout on check program


From: Zippy Zeppoli
Subject: setting timeout on check program
Date: Wed, 15 Aug 2012 15:33:43 -0700

Hi,
I was trying to interpret the documentation to change the default timeout for a "check program" check.

check program myscript with path "/etc/monit.scripts.d/myscript.sh"
       if status != 0 then alert

I want this to only run every 5 minutes, but I'm wondering how this syntax would apply?

The syntax of the program status statement is:

IF STATUS operator value [TIMEOUT <N> SECONDS] [[<X>] <Y> CYCLES] THEN action [ELSE IF SUCCEEDED [[<X>] <Y> CYCLES] THEN action]



reply via email to

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