From: hadaq Date: Fri, 3 Apr 2009 13:02:56 +0000 (+0000) Subject: move from lustre_alpha to lustre. Sergey. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=88db5e6a4171006b2ad67725e11cc91968c899fa;p=hadesicinga.git move from lustre_alpha to lustre. Sergey. --- diff --git a/plugins/check_lustre.pl b/plugins/check_lustre.pl index 5f52829..0d6cdea 100755 --- a/plugins/check_lustre.pl +++ b/plugins/check_lustre.pl @@ -37,6 +37,8 @@ my $time_ls : shared = &getTime(); my $sleep_time : shared = 600; #- 10 minutes my $ExitCode : shared = -1; #- used to stop threads +our $lustre_dir = "/lustre/hades"; + our $server_port = '50502'; our $protocol = 'tcp'; @@ -76,12 +78,12 @@ sub main { $time_du = &getTime(); } - my $line =`ls -d /lustre_alpha/hades/user`; + my $line =`ls -d $lustre_dir/user`; chomp($line); $time_ls = &getTime(); - if ($line eq "/lustre_alpha/hades/user") + if ($line eq "$lustre_dir/user") { if($opt_s){ $status = "OK - Lustre space used: $lustre_size TB"; @@ -174,7 +176,7 @@ sub getTotalSize #--- get total size of lustre beam dir my $totsize = 0; - my @size = `du -cms /lustre_alpha/hades`; + my @size = `du -cms $lustre_dir`; foreach my $line (@size){ if( $line =~ /total/ ){