[rrd-users] Re: Disk Usage per SNMP?

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Apr 7 10:26:24 MEST 2003


On Sun, Apr 06, 2003 at 10:01:44PM +0200, Hugo van der Kooij wrote:

> rrdtool create /etc/stats/aragorn.disk.usr.rrd  \
>         DS:units:GAUGE:600:U:U  \
>         DS:size:ABSOLUTE:600:U:U        \
>         DS:used:ABSOLUTE:600:U:U        \

counter:  rate = (this_value - last_value)/(this_time - last_time)
derive:   rate = (this_value - last_value)/(this_time - last_time)     (can be negative)
absolute: rate = (current_value)/(this_time - last_time)
gauge:    rate = current_rate


You do not want to use "absolute" here.

> UNITS=`$SNMPGET -v1 -c mysnmpd aragorn 1.3.6.1.2.1.25.2.3.1.4.8|awk '{print $4}'`
> SIZE=`$SNMPGET -v1 -c mysnmpd aragorn 1.3.6.1.2.1.25.2.3.1.5.8|awk '{print $4}'`
> USED=`$SNMPGET -v1 -c mysnmpd aragorn 1.3.6.1.2.1.25.2.3.1.6.8|awk '{print $4}'`
> rrdtool update $STATDIR/aragorn.disk.usr.rrd N:$UNITS:$SIZE:$USED
> 
> I checked the values with an additional echo command and the proper values 
> are returned and fed to rrdtool.

And rrdtool computes a rate. It divides your proper value by the difference
in time, the outcome is stored.

> But graphing them seem to be a bit harder.

Nope.  Check the content of the database; you'll find that you're
graphing what's in there.

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

cheers,
Alex
-- 
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list