[Top][All Lists]

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

Re: Monit watching URL Question

From: Martin Pala
Subject: Re: Monit watching URL Question
Date: Fri, 23 Aug 2013 10:47:38 +0200


please can you send the configuration and logs?

In general Monit tests cannot be chained like this:

        if URL1 failed && if URL2 succeeded then restart browser

The URL1 and URL2 tests are independent in the same service context.

You may use the "check program" with custom script, which will implement the 
test chain. Program check skeleton:


On Aug 22, 2013, at 11:52 PM, noctuary <address@hidden> wrote:

> To All:
> I have a unique setup for Monit and was wondering if anyone could provide me
> with a code snippet for the monitrc file.
> I have a Ubuntu computer running OpenKiosk, a fullscreen browser.  I want
> Monit to do an URL check on a LAN IP address and if it fails, load a local
> html file.  If it is successful, I want it to restart the browser and open a
> LAN webpage.
> I have the code for all of the above, but with my current code it restarts
> the browser every time it is successful (every time the daemon loops).  How
> do I add a line to say to only load the LAN webpage once when a successful
> URL check is done directly following a fail, while continuing to have Monit
> check for the failure again?  Any help would be appreciated, I really like
> this tool and appreciate any suggestions the community can provide.
> Thanks,
> noc
> --
> View this message in context: 
> Sent from the monit-general mailing list archive at
> --
> To unsubscribe:

reply via email to

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