--- /home/dan/tmp/netsaint_statd_v2.15/netsaint_statd Mon Apr 8 15:40:18 2002 +++ /usr/local/libexec/netsaint/netsaint_statd/netsaint_statd Tue Sep 7 18:56:15 2004 @@ -91,6 +91,7 @@ proccommand => "/bin/ps ax", procstates => "RSTDIZ", uptimecommand => "/usr/bin/uptime", + raidcommand => "/usr/local/bin/raidutil -L logical", }, "NEXTSTEP" => { dfcommand => "/bin/df", @@ -152,7 +153,8 @@ "alldisks" => \&alldisks, "uptime" => \&uptime, "procs" => \&procs, - "named_proc" => \&named_proc + "named_proc" => \&named_proc, + "raid" => \&raid ); ################################################################################ @@ -367,4 +369,15 @@ @_ = ; print Client ++$#_; close(PROCOUT); + } + + +sub raid + { + open(WHOOUT,"$commandlist{$os}{raidcommand} | grep ^d[0-9] | awk '{print \$8, \$9, \$10}' |") || die; + + $_ = ; + + print Client "$_ "; + close(WHOOUT); }