monit-dev
[Top][All Lists]
Advanced

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

Re: plans


From: Christian Hopp
Subject: Re: plans
Date: Tue, 24 Jun 2003 10:50:41 +0200 (CEST)

On Tue, 24 Jun 2003, Martin Pala wrote:

> Christian Hopp wrote:
>
> >We could also make global methods.
> >
>
> This could be probably usefull. We have similar problem with alert
> statements (global alert statement could save lot of space).

That might be the only difficult implementation part.  Shall we copy
all global method into each service... or do we copy it in case of
reference.  What about global<->local name clashes?  Do we overwrite
or is it a collision?

> >>check ...
> >>  # method definition section
> >>  method start "/etc/init.d/apache start" exec on { start }
> >>  method stop "/etc/init.d/apache start" exec on { stop }
> >>
> >>
> >
> >With the shortcuts:
> >
> >   start "/foo/bar"
> >   stop  "/foo/bar"
>
> Agree, backward compatibility will be kept:
>
> start "/foo/bar"   ... can be parsed as:    method start "/foo/bar" exec
> on { start }
>
> Note: it was just example syntax so maybe there are better terms then
> 'method start "/foo/bar" exec on { start }', what do you think?

For me as a python programmer the 'method' statement is great... it
give monit a modern touch. (-:

> >What do you think,
> >
> >   if cpu > 90% then exec method1, method2, method3
> >
> >makes sense, too?  Our language could handle it.
> >
>
> Looks good :) It makes the configuration more powerfull (atomic
> operations for simple events and chaining them for  special cases)

With the new separate namespace code the implementation is easy.

Btw, I am out of office for till the end of the week. I hope I can
leave you all alone for the next days. (-:


Christian


-- 
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/





reply via email to

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