[Resmon-devel] [resmon commit] r317 - branches/resmon2/lib/Resmon/Module_to_convert

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Fri Apr 23 17:34:21 EDT 2010


Author: jdixon
Date: 2010-04-23 17:34:21 -0400 (Fri, 23 Apr 2010)
New Revision: 317

Removed:
   branches/resmon2/lib/Resmon/Module_to_convert/FAULTS.pm
Log:
converted to Core::Fmadm

Deleted: branches/resmon2/lib/Resmon/Module_to_convert/FAULTS.pm
===================================================================
--- branches/resmon2/lib/Resmon/Module_to_convert/FAULTS.pm	2010-04-23 21:05:47 UTC (rev 316)
+++ branches/resmon2/lib/Resmon/Module_to_convert/FAULTS.pm	2010-04-23 21:34:21 UTC (rev 317)
@@ -1,17 +0,0 @@
-package Resmon::Module::FAULTS;
-use Resmon::ExtComm qw/cache_command/;
-use vars qw/@ISA/;
- at ISA = qw/Resmon::Module/;
-
-sub handler {
-  my $arg = shift;
-  my $proc = $arg->{'object'};
-  my $output = cache_command("/usr/sbin/fmadm faulty | sed '1,2d'|grep -v -- '^----'", 500);
-  if($output) {
-    $output =~s /\n/:/gs;
-    $output =~s /\s+/ /gs;
-    return "BAD($output)";
-  }
-  return "OK(no faults)";
-};
-1;



More information about the Resmon-devel mailing list