[hobbit] New version of beastat.pl netapp.pl and dbcheck.pl

Francesco Duranti fduranti at q8.it
Thu Aug 24 21:08:07 CEST 2006


 
> > Those are just released on sourceforge at 
> > http://sourceforge.net/projects/hobbit-perl-cl/
> 
> > Netapp.pl v1.05
> 
> This is a great script!  I've been using a modified version 
> of filerstats2bb for sometime, and I'm in the process of 
> switching to netapp.pl instead.  THe ability to track NFS ops 
> is worth the upgrade alone, even though I haven't been able 
> to get that to work just yet?

Thanks :D
There's an error in the README ... 
If you're using hobbit 4.2 and NetApp with Ontap version 6.5+ just do
this:

In hobbitserver.cfg

Add those line to the end of the file
NCV_ops="NFSops:GAUGE,CIFSops:GAUGE,iSCSIops:GAUGE,HTTPops:GAUGE,FCPops:
GAUGE,Totalops:GAUGE,*:NONE"
NCV_stats="NETread:GAUGE,NETwrite:GAUGE,DISKread:GAUGE,DISKwrite:GAUGE,T
APEread:GAUGE,TAPEwrite:GAUGE,FCPin:GAUGE,FCPout:GAUGE,*:NONE"

edit the TEST2RRD and GRAPHS columns and add :
",ops=ncv,stats=ncv" to the end of the TEST2RRD line
",ops,stats" to the end of the GRAPHS line

Edit the hobbitgraphs.cfg and add this to the end of file:
[ops]
        TITLE NetApp Operations/Sec
        YAXIS Ops/Sec
        DEF:NFS=ops.rrd:NFSops:AVERAGE
        DEF:CIFS=ops.rrd:CIFSops:AVERAGE
        DEF:iSCSI=ops.rrd:iSCSIops:AVERAGE
        DEF:HTTP=ops.rrd:HTTPops:AVERAGE
        DEF:FCP=ops.rrd:FCPops:AVERAGE
        DEF:Total=ops.rrd:Totalops:AVERAGE
        LINE1:NFS#0000FF:NFS ops
        LINE1:CIFS#FF0000:CIFS ops
        LINE1:iSCSI#00CC00:iSCSI ops
        LINE1:HTTP#FF00FF:HTTP ops
        LINE1:FCP#555555:FCP ops
        LINE1:Total#880000:Total ops
        COMMENT:\n
        GPRINT:NFS:LAST:NFS   ops \: %5.1lf%s (cur)
        GPRINT:NFS:MAX: \: %5.1lf%s (max)
        GPRINT:NFS:MIN: \: %5.1lf%s (min)
        GPRINT:NFS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:CIFS:LAST:CIFS  ops \: %5.1lf%s (cur)
        GPRINT:CIFS:MAX: \: %5.1lf%s (max)
        GPRINT:CIFS:MIN: \: %5.1lf%s (min)
        GPRINT:CIFS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:iSCSI:LAST:iSCSI ops \: %5.1lf%s (cur)
        GPRINT:iSCSI:MAX: \: %5.1lf%s (max)
        GPRINT:iSCSI:MIN: \: %5.1lf%s (min)
        GPRINT:iSCSI:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:HTTP:LAST:HTTP  ops \: %5.1lf%s (cur)
        GPRINT:HTTP:MAX: \: %5.1lf%s (max)
        GPRINT:HTTP:MIN: \: %5.1lf%s (min)
        GPRINT:HTTP:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:FCP:LAST:FCP   ops \: %5.1lf%s (cur)
        GPRINT:FCP:MAX: \: %5.1lf%s (max)
        GPRINT:FCP:MIN: \: %5.1lf%s (min)
        GPRINT:FCP:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Total:LAST:Total ops \: %5.1lf%s (cur)
        GPRINT:Total:MAX: \: %5.1lf%s (max)
        GPRINT:Total:MIN: \: %5.1lf%s (min)
        GPRINT:Total:AVERAGE: \: %5.1lf%s (avg)\n

[stats]
        TITLE NetApp Transfer Rates
        YAXIS Tranfer Rates
        -b 1024
        DEF:Ni=stats.rrd:NETread:AVERAGE
        DEF:No=stats.rrd:NETwrite:AVERAGE
        DEF:Di=stats.rrd:DISKread:AVERAGE
        DEF:Do=stats.rrd:DISKwrite:AVERAGE
        DEF:Ti=stats.rrd:TAPEread:AVERAGE
        DEF:To=stats.rrd:TAPEwrite:AVERAGE
        DEF:Fi=stats.rrd:FCPin:AVERAGE
        DEF:Fo=stats.rrd:FCPout:AVERAGE
        CDEF:Nin=Ni,1024,*
        CDEF:Nout=No,1024,*
        CDEF:Din=Di,1024,*
        CDEF:Dout=Do,1024,*
        CDEF:Tin=Ti,1024,*
        CDEF:Tout=To,1024,*
        CDEF:Fin=Fi,1024,*
        CDEF:Fout=Fo,1024,*
        LINE1:Nin#0000FF:NETin
        LINE1:Nout#FF0000:NETout
        LINE1:Din#00CC00:DISKrd
        LINE1:Dout#FF00FF:DISKwr
        LINE1:Tin#555555:TAPErd
        LINE1:Tout#880000:TAPEwr
        LINE1:Fin#00FF00:FCPin
        LINE1:Fout#000088:FCPout
        COMMENT:\n
        GPRINT:Nin:LAST:NET   in   \: %5.1lf%s (cur)
        GPRINT:Nin:MAX: \: %5.1lf%s (max)
        GPRINT:Nin:MIN: \: %5.1lf%s (min)
        GPRINT:Nin:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Nout:LAST:NET   out  \: %5.1lf%s (cur)
        GPRINT:Nout:MAX: \: %5.1lf%s (max)
        GPRINT:Nout:MIN: \: %5.1lf%s (min)
        GPRINT:Nout:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Din:LAST:Disk Read  \: %5.1lf%s (cur)
        GPRINT:Din:MAX: \: %5.1lf%s (max)
        GPRINT:Din:MIN: \: %5.1lf%s (min)
        GPRINT:Din:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Dout:LAST:Disk Write \: %5.1lf%s (cur)
        GPRINT:Dout:MAX: \: %5.1lf%s (max)
        GPRINT:Dout:MIN: \: %5.1lf%s (min)
        GPRINT:Dout:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Tin:LAST:Tape Read  \: %5.1lf%s (cur)
        GPRINT:Tin:MAX: \: %5.1lf%s (max)
        GPRINT:Tin:MIN: \: %5.1lf%s (min)
        GPRINT:Tin:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Tout:LAST:Tape Write \: %5.1lf%s (cur)
        GPRINT:Tout:MAX: \: %5.1lf%s (max)
        GPRINT:Tout:MIN: \: %5.1lf%s (min)
        GPRINT:Tout:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Fin:LAST:FCP  In    \: %5.1lf%s (cur)
        GPRINT:Fin:MAX: \: %5.1lf%s (max)
        GPRINT:Fin:MIN: \: %5.1lf%s (min)
        GPRINT:Fin:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:Fout:LAST:FCP  Out   \: %5.1lf%s (cur)
        GPRINT:Fout:MAX: \: %5.1lf%s (max)
        GPRINT:Fout:MIN: \: %5.1lf%s (min)
        GPRINT:Fout:AVERAGE: \: %5.1lf%s (avg)\n


At this point restart the hobbit server or kill the hobbitd_rrd file and
check if data are inside your $BBHOME/data/rrd/filersname/ directory.
You should find a ops.rrd and stats.rrd files there


> 
> I was going to try and get the snapshot column to display 
> graphs, so if I get that working I'll pass it along.
> 
For snapshot there's not a simple way, you've to edit the source code of
hobbit and some will get wrong. At this moment I'm finishing to work to
module for rrd implementation inside the hobbit_rrd for them and I've
something done but I'm waiting for some nice feature regarding custom
rrd implementation from Henrik so you can have something in the next few
days (snapshot, quotas, qtree, and something more in the next future
like full nfsstatistics and interface/network statistics)...

> Is there an easy way to disable some of the tests, such as 
> quotas and cifs?

Just put in your [default] section or under the [storage] section of
your netapp.ini this one and it will not check those columns (it's valid
for all columns).
bbuserquotacolumn       = quotas:notest
bbcifscolumn            = cifs:notest

If you want data to be reported silently without having a column just to
create a graph in the trend you can also do:
bbopscolumn             = ops:data
bbstatscolumn           = stats:data
And those columns will be sent as data and not showed in the hobbit web
pages (but the data will still go in the rrd and will be graphed in the
trends column).




More information about the Xymon mailing list