monit-dev
[Top][All Lists]
Advanced

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

Re: device stuff - cvs


From: Christian Hopp
Subject: Re: device stuff - cvs
Date: Tue, 10 Jun 2003 14:59:05 +0200 (CEST)

On Mon, 9 Jun 2003, Martin Pala wrote:

> I though yet about one topic - it is possible to consolidate syntax of
> resource checks with syntax of device style, for example:
>
>   "if cpuusage is greater than 60.0 for 2 cycles then alert" -> "if cpu
> usage > 60 % for 2 cycles then alert"
>
>   "if memkbyte > 100000.0 for 5 cycles then stop" -> "if memory usage >
> 100 MB for 5 cycles then stop"
>
>   "if memusage > 10.0 for 5 cycles then stop" -> "if memory usage > 10 %
> for 5 cycles then stop"
>
> It is probably more simple i think (it is sufficient to have just 'cpu'
> and 'mem(ory)' statements instead of present 'cpuusage', 'memkbyte' and
> 'memusage'). What about it?

Good idea... the memusage/memkbytes came because of laziness. (-:

I have prepared new code for p.y/l.l with the syntax,

IF MEM(ORY) <operator> <int|real> <unit|%> [<int>] <action>

IF CPU <operator> <int|real> % [<int>] <action>

IF CHILD(REN) <operator> <int> [<int>] <action>

IF TOTALMEM(ORY) <operator> <int|real> <unit|%> [<int>] <action>

the old syntax is still available but you get a warning that it is
obsolete.

If its okay I can sync it... what about the others?

We can leave the old syntaxes till 4.0.  We should use the step to 4.0
as a chance to clean up the language.


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/





reply via email to

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