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@=@RRDFN@:Kb_read:AVERAGE LINE2:Kb_read at RRDIDX@#@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@=@RRDFN@:Kb_wrtn:AVERAGE CDEF:Kb_wrtn at RRDIDX@=0,Kb_wrtn2 at RRDIDX@,- LINE2:Kb_wrtn at RRDIDX@#@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