[Top][All Lists]

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

Re: execute script on specific X hours via monit

From: Martin Pala
Subject: Re: execute script on specific X hours via monit
Date: Mon, 17 Sep 2012 15:16:45 +0200

To set the check interval you can either us the "every X cycles" statement (for example "every 5 cycles" will perform the test once per 5 cycles, where the cycle length is given by "set daemon Y"). Another option is to use cron-like schedule - for examle to do the test at midnight: "every 0 0 * * *"

See more details in monit manual.


On Sep 17, 2012, at 3:13 PM, Charles Pino <address@hidden> wrote:

hello all
what does  "for 5 cycles then alert" mean? i am trying to look for  some setting for specific script. that will continuously check on specific period of time.

i wanted to execute this on every X hours.

check program lastcall with path "/root/"
if status !=0   then alert

if possible.

To unsubscribe:

reply via email to

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