On Mon, 7 Apr 2003, Alex van den Bogaerdt wrote:
> On Sun, Apr 06, 2003 at 10:01:44PM +0200, Hugo van der Kooij wrote:
>
> absolute: rate = (current_value)/(this_time - last_time)
> gauge: rate = current_rate
Got it covered. The data is now present and works fine.
> > In the long run I would like to use a three color approach. (green for <
> > 80%; orange for 80-95%; red for > 95%)
>
> Sure. But for now concentrate on the basis.
Now the object is to make a CDEF string to return the following formula:
if ( 0.8 < (used/size) <= 0.95 ) {
used+units
} else {
0
)
I settled for:
CDEF:normal=used,size,/,$BUSY,LT,used,units,*,0,IF \
CDEF:temp=used,size,/,$BUSY,GT,used,0,IF \
CDEF:busy=used,size,/,$FULL,LT,temp,units,*,0,IF \
CDEF:full=used,size,/,$FULL,GT,used,units,*,0,IF \
Where:
BUSY=0.8
FULL=0.95
Thanks for pointing out the oversight. (Can't be a guru in everything ;-)
Hugo.
--
All email sent to me is bound to the rules described on my homepage.
[EMAIL PROTECTED] http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of sysadmins,
for they are subtle and quick to anger.
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi