[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] iostat
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] iostat
- From: Stef Coene <stef.coene (at) docum.org>
- Date: Wed, 17 Dec 2008 09:57:49 +0100
- References: <OFF70F6CF0.02C239AF-ON48257522.002DE249-48257522.002E5A2A (at) sm-shoemart.com>
- User-agent: KMail/1.9.10
On Wednesday 17 December 2008, RaAL (at) sm-shoemart.com wrote:
> Thanks Stef
>
> But I'm having a hard time how am i going to do the definitions per mount
> point in hobbitgraph.cfg.
> You may send me your sample scripts if you 've done it in your sample box.
sda1 is my / fs, so I create a symbolic link:
ln -s iostat-part.sda1.rrd iostat-part-mp,root.rrd
sdb5 is my /home/users fs, so I create a symbolic link:
ln -s iostat-part.sdb5.rrd iostat-part-mp,home,users.rrd
Added to hobbitgraph (copied from [iostat-part], only the FNXPATTERN is
changed):
[iostat-part-mp]
TITLE partition read and write
YAXIS KiloByte/s
FNPATTERN iostat-part-mp(.*).rrd
DEF:Kb_read (at) RRDIDX@= (at) RRDFN@:Kb_read:AVERAGE
LINE2:Kb_read (at) RRDIDX@# (at) COLOR@:@RRDPARAM@ read
GPRINT:Kb_read (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:Kb_read (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:Kb_read (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:Kb_read (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
DEF:Kb_wrtn2 (at) RRDIDX@= (at) RRDFN@:Kb_wrtn:AVERAGE
CDEF:Kb_wrtn (at) RRDIDX@=0,Kb_wrtn2 (at) RRDIDX@,-
LINE2:Kb_wrtn (at) RRDIDX@# (at) COLOR@:@RRDPARAM@ wrtn
GPRINT:Kb_wrtn2 (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:Kb_wrtn2 (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:Kb_wrtn2 (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:Kb_wrtn2 (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
To include this graph (placed in bb-hosts):
TRENDS:*,disk:disk|iostat-disk|iostat-part-mp
Stef