Re: Are cron definitions for host/port checks supported?

Noel <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
On 6/22/2018 3:46 AM, [email protected] wrote:
>
> Hi there
>
>  
>
> We need to monitor a website (host / port) only between a specific
> time range (e.g. while 08:00-18:00 on workdays).
>
>  
>
> Is it possible to add something like for the services:
>
> check host [host] with address [fqdn]
>
>   if failed ping then alert
>
>   if failed port 80 protocol http request "/index.php" then alert
>
>     every "* 8-18 * * 1-5"
>
>  
>
> This would be great. If not, I have to use a curl scriptÂ… :/
>
>  
>
> Thank you for your effort.
>
>  
>
> Best regrads
> mha
>
>
>

Yes, monit supports cron-style scheduling.  See the manual for details.

https://mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME



  -- Noel Jones

-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.