From: hadaq Date: Thu, 29 Jan 2009 13:01:21 +0000 (+0000) Subject: debugging. Sergey. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=da54949504f054b148f86a276554b3f729f84190;p=hadesicinga.git debugging. Sergey. --- diff --git a/plugins/check_lustre.pl b/plugins/check_lustre.pl index 468927d..56d2056 100755 --- a/plugins/check_lustre.pl +++ b/plugins/check_lustre.pl @@ -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";