On Tue, Jun 10, 2003 at 09:20:25PM +0200, Stefan Funke wrote:
Quoting message received from David Le Blanc:
The Filer sends traps such as "Soft block limit exceeded for user 3325, tree 1 on volume students." but there doesn't seem to be any correlation/pattern as to what "tree 1" is, exactly.
What software do you use to receive such traps? I've written a piece of software that queries some status messages via SNMP on demand (and draws some RRDs etc) - a trap host would be much better, of course. So, is there any useable software? (unix based, gpl/free)
I have UCD-SNMP (now known as Net-SNMP) running as a NMS (snmptrapd, trap recv). The daemon is configured to run a custom script (which I wrote) every time a trap is received. The script handles all kinds of events (UPS, AuthFail, and Filer). In response to a "quota softLimit exceeded", it will lookup the quota/usage values via SNMP and transmit a "warning" to the user such that they have xxxKB left before their mail begins bouncing. Of course, the drawback is if they've already written to fill to their "hard limit", the warning will bounce...but the user will probably know they are over quota if that happens.
The daemon (part of Net-SNMP), and the script (written in Perl) are "free", as in "free beer".
I also have some nifty polling goin' on with a polling script (again, which I wrote in Perl) which queries the filer, stores the data in RRDs and graphs the data... MRTG was a bit too clunky for me, so I wrote my own. I have disk space (for all volumes) and Filer CPU status running out of one little Perl script, which I eventually have to document -- if I get hit by a bus, no one will know how it works...
For nifty pointy-clicky-type graphs, check out Cactus (http://www.raxnet.net/products/cacti/), its also GPL. It uses RRD and SQL to store data, and PHP to display data in nice graphs. The graphs are created dynamically by default (so you don't have to store the images anywhere), and the system is authentication-based, which lets OTHER (non-sysadmin-types) people create/view/edit graphs, if you want.
-- Dave Le Blanc Unix Systems Administrator Computer Science Department California Institute of Technology (626)395-2402