--quota (unimplemented) report quotas
I actually did something like this for quotas. Mine doesn't require the ucb snmp stuff (uses the same portable snmp stuff that mrtg uses). You're welcome to take a look at it.
ftp://ftp.ewd.3com.com/incoming/mrz/netapp.quota.tgz ftp://ftp.ewd.3com.com/incoming/mrz/redcheck.gif
It contains:
BER.pm # both borrowed from mrtg SNMP_Session.pm
ckquota # -h for help quota-indexmaker # makes index.html redcheck.gif # used by the above
BER.pm and SNMP_Session.pm need to be someplace in your @INC path or in the same directory that ckquota runs from.
I run it with something like:
ckquota -html -hogmark 85 hudson -o /web/private/nacs/usage/hudson.html
-html outputs report as HTML instead of ASCII -horgmark 85 anyone over 85% usage is tagged in orange -o <filename> the output
"hudson" is the name of my filer.
Additional options: mrz@nimba [~/] 37> /sysadm/bin/bin/ckquota -help Usage: /sysadm/bin/bin/ckquota [-o outfile] [-hog] [-mail] [-hogmark=xx] [-html] filer where parameters are: -o <outfile> output filename -hog show ONLY disk hogs (default HOG Mark = 85%) -mail send email to disk hogs -hogmark disk hog % -html output report as HTML text filer NetApp filer
I run this on all my filers and then quota-indexmaker "makes" part of an index.html file that has checkmarks for those filers with "hogs".
Enjoy. If you find this useful, have at it.
- mz
-- matthew zeier -- mrz@3com.com -- 3Com EWD Engineering -- 408/764-8420 ...................................................................... "Y el mundo se mueve, mas rapido y mejor." - Fey