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';
chomp($line);
$time_ls = &getTime();
-
+ print "main: timels: $time_ls\n";
if ($line eq "/lustre_alpha/hades/user")
{
if($opt_s){
else {
$status = "CRITICAL - Lustre mount failure!";
}
+
print "main: before sleep\n";
sleep $sleep_time; # 10 minutes
print "main: after sleep\n";