monit-dev
[Top][All Lists]
Advanced

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

Re: monit CHANGES.txt gc.c l.l monitor.h p.y util.c...


From: Martin Pala
Subject: Re: monit CHANGES.txt gc.c l.l monitor.h p.y util.c...
Date: Mon, 20 Dec 2004 08:57:46 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.3) Gecko/20040910

Martin Pala wrote:
Jan-Henrik Haukeland wrote:

    The current parser, parse this type of statement for URL check:
check <....> if failed url http://username:address@hidden/index.html?querystring
    and content == "regexp"
    with timeout 15 seconds
    then alert
I have taken the liberty to just check this in, without asking. I hope this is okay? since we already has voted 'yes' on including this functionality.


The new syntax looks good :) I think it could be useful to replace existing port test syntax:

  if failed [host ...] port ... [protocol ...] [request ...]

with new one based on URLs. This can be more simple to use (urls are usual + the form is shorter) and internaly it provides good flexibility.

Martin


oops - on the second sigth it may not be practical to replace the port syntax at all - for example the simpliest form:

  if failed port 80 then ...

and url based alternative:

  if failed generic://127.0.0.1:80 then ...


But maybe it could be possible to consolidate it internally, i.e. both syntaxes may use common structure for protocol, host, port, request, user, etc.











reply via email to

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