monit-general
[Top][All Lists]
Advanced

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

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


From: Noel
Subject: Re: Are cron definitions for host/port checks supported?
Date: Fri, 22 Jun 2018 08:41:18 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 6/22/2018 3:46 AM, address@hidden 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


reply via email to

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