]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
debugging. Sergey.
authorhadaq <hadaq>
Thu, 29 Jan 2009 13:01:21 +0000 (13:01 +0000)
committerhadaq <hadaq>
Thu, 29 Jan 2009 13:01:21 +0000 (13:01 +0000)
plugins/check_lustre.pl

index 468927d1b2bf71e1278a6ba8c0ea826c73ab860c..56d20561598ab950f4fe1be64744d230786610a4 100755 (executable)
@@ -32,10 +32,10 @@ if($opt_h){
     exit(0);
 }
 
-my $status     : shared = "OK";        #- status reported by Nagios
-my $time_ls    : shared = &getTime();
-my $sleep_time : shared = 10;         #- 10 minutes
-my $ExitCode   : shared = -1;          #- used to stop threads
+my  $status     : shared = "OK";        #- status reported by Nagios
+our $time_ls    : shared = &getTime();
+my  $sleep_time : shared = 10;         #- 10 minutes
+my  $ExitCode   : shared = -1;          #- used to stop threads
 
 our $server_port = '50502';
 our $protocol    = 'tcp';
@@ -81,7 +81,7 @@ sub main {
        chomp($line);
        
        $time_ls = &getTime();
-
+       print "main: timels: $time_ls\n";
        if ($line eq "/lustre_alpha/hades/user") 
        {
            if($opt_s){
@@ -95,6 +95,7 @@ sub main {
        else {
            $status  = "CRITICAL - Lustre mount failure!";
        }
+
        print "main: before sleep\n";
        sleep $sleep_time; # 10 minutes
        print "main: after sleep\n";