monit-dev
[Top][All Lists]
Advanced

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

Language Task Force Report I [Re: device stuff - cvs]


From: Christian Hopp
Subject: Language Task Force Report I [Re: device stuff - cvs]
Date: Thu, 12 Jun 2003 13:56:55 +0200 (CEST)

On Wed, 11 Jun 2003, Jan-Henrik Haukeland wrote:

> Christian Hopp <address@hidden> writes:
>
> > On Wed, 11 Jun 2003, Jan-Henrik Haukeland wrote:
> >
> > > Please make *usage* a noise keyword so it's possible to say:
> > >
> > > IF MEM(ORY) usage <operator> ..
> > > IF CPU usage <operator> ..
> > >
> >
> > It is already.... you see that we should really think about tidying
> > up!
>
> Okay, good. Suggestions for cleaning up?

I got this to work... (-:

check process ssh with pidfile /var/run/sshd.pid
--------------^^^
      start program = "/bin/true"
      stop program = "/bin/true"
      port 22 protocol ssh


even "check process check" does work. (-: Thus, we don't have problems
with reserved words any more.

How...?

"check[ \n\t]+process" is bound to a "whatever" string as one token.
Thus, the argument of "check process" is not matched against the whole
language, but just in the context of "check[ \n\t]+process[ \n\t]+[^ \n\t]+"
.

See the patch.

CHopp

-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/

Attachment: language.diff
Description: Text document


reply via email to

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