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

Re: [hobbit] Creating Custom Graphs



On Sunday 26 March 2006 15:31, EyalRi (at) clal-ins.co.il wrote:
> Hi,
>
> I am trying to create new custom graph.
>
> I am getting the following data in "status" and "data" channels under
> iostat -
>
> c0d0p7-rps:0.00
> c0d0p7-wps:15.01
> c0d0p1-rps:0.00
> c0d0p1-wps:0.00
> c0d0p10-rps:0.00
> c0d0p10-wps:4.60
>
> I have added a record to hobbitgraph.cfg -
>
> [iostat]
>         FNPATTERN iostat(.*).rrd
>         TITLE Disk IO
>         YAXIS % Full
>         DEF:p (at) RRDIDX@= (at) RRDFN@:pct:AVERAGE
>         LINE2:p (at) RRDIDX@# (at) COLOR@:@RRDPARAM@
>         -u 100
>         -l 0
>         GPRINT:p (at) RRDIDX@:LAST: \: %5.1lf (cur)
>         GPRINT:p (at) RRDIDX@:MAX: \: %5.1lf (max)
>         GPRINT:p (at) RRDIDX@:MIN: \: %5.1lf (min)
>         GPRINT:p (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
>
> I have added the iostat to TEST2RRD and GRAPHS in hobbitserver.cfg.
>
> I have added a record to hobbitlaunch.cfg -
>
> [rrdstatus]
>         ENVFILE
> /clalapp/hobbit_monitor/hobbit_server/server/etc/hobbitserver.cfg NEEDS
> hobbitd
>         CMD hobbitd_channel --channel=status
> --log=$BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd
> --extra-test=i ostat
>
> # "rrddata" updates RRD files with information that arrives as "data"
> messages. # If you want RRD graphs of your monitoring BB data, then you
> want to run this.
>
> [rrddata]
>         ENVFILE
> /clalapp/hobbit_monitor/hobbit_server/server/etc/hobbitserver.cfg NEEDS
> hobbitd
>         CMD hobbitd_channel --channel=data  
> --log=$BBSERVERLOGS/rrd-data.log hobbitd_rrd --rrddir=$BBVAR/rrd
> --extra-test=ios tat
>
>
> I have also added iostat to bb-hosts.
>
> Unfortunately I am not getting the RRD graphs.
>
> Any idea/suggestion what could be the problem?
>
> Any help/suggestion would be appreciated.

I assume you are wanting to have these rrd files generated by the ncv handler, 
in which case you also need to:

-add ncv to GRAPHS (so GRAPHS should include both iostat and ncv)
-add "iostat=ncv" to TEST2RRD (instead of just "iostat")
-add a line that looks something like this:
ncv_iostat="c0d0p7-rps:GAUGE,c0d0p7-wps:GAUGE,c0d0p1-rps:GAUGE,c0d0p1-wps:GAUGE,c0d0p10-rps:GAUGE,c0d0p10-wps:GAUGE

in hobbitserver.cfg

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)