]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
move from lustre_alpha to lustre. Sergey.
authorhadaq <hadaq>
Fri, 3 Apr 2009 13:02:56 +0000 (13:02 +0000)
committerhadaq <hadaq>
Fri, 3 Apr 2009 13:02:56 +0000 (13:02 +0000)
plugins/check_lustre.pl

index 5f528290b10fd2f4a59ad4e0c49fce460a9efc68..0d6cdeabc00efaf7abd99b8b7266ad8a67a3ccf7 100755 (executable)
@@ -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/ ){