monit-general
[Top][All Lists]
Advanced

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

Re: check program entry that runs only once using the every [cron] line


From: me mine
Subject: Re: check program entry that runs only once using the every [cron] line
Date: Fri, 26 Feb 2016 13:35:50 -0500 (EST)

Hello, I saw your post and wanted to ask...

Just curious what you are trying to monitor for. If you can run the program 
with cron, why not just have the script log an entry or create a drop file, 
then have monit monitor the file and give alert based on that? 

I guess I don't understand what end result you are achieving here. 


-jim

> On Feb 26, 2016, at 1:28 PM, Marc Rossi <address@hidden> wrote:
> 
> Is it possible to use monit to run a batch job that needs to run once a day?
> 
> For example:
> 
> check program my-program
>     with path "/usr/local/bin/my-program.py"
>     every "0 6 * * 1-5"
>     if status != 0 then alert
> 
> Would run this job only once a day @ 6:00 am M-F?  I know the docs say to not 
> use a "specific minute" but I have my polling interval set to 20 seconds 
> using "set daemon 20" in my config file.
> 
> Does this potentially run twice in a minute?  Say @ 6:00:00 and 6:00:20 for 
> example?
> 
> TIA
> Marc
> 
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general





reply via email to

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