--- loncom/cgi/clusterstatus.pl 2003/07/31 15:35:02 1.9 +++ loncom/cgi/clusterstatus.pl 2003/07/31 16:07:47 1.10 @@ -3,7 +3,7 @@ $|=1; # The LearningOnline Network with CAPA # Cluster Status # -# $Id: clusterstatus.pl,v 1.9 2003/07/31 15:35:02 www Exp $ +# $Id: clusterstatus.pl,v 1.10 2003/07/31 16:07:47 www Exp $ use lib '/home/httpd/lib/perl/'; use LONCAPA::Configuration; @@ -178,7 +178,7 @@ sub serverstatus { $local $hostdom{$local} ($hostname{$local}; $hostrole{$local})
$domaindescription{$hostdom{$local}} -
+ ENDHEADER &login($local);&server($local);&users($local);&versions($local); &loncron($local);&lond($local);&lonc($local);&runloncron($local); @@ -277,7 +277,7 @@ $mode=$FORM{'mode'}; unless ($modes{$mode}) { $mode='trouble'; } # ================================================================ Send Headers print "Content-type: text/html\n\n". - "\n"; + "\n"; # -------------------- Read loncapa.conf (and by default, loncapa_apache.conf). my $perlvarref=LONCAPA::Configuration::read_conf('loncapa.conf'); %perlvar=%{$perlvarref}; @@ -324,7 +324,7 @@ delete $perlvar{'lonSqlAccess'}; # remov } -print "

Cluster Status ".localtime()."

"; +print "

LON-CAPA Cluster Status ".localtime()."

"; print "
\n". "
". "
\n";; @@ -424,7 +424,38 @@ foreach $local (sort keys %hostname) { foreach (&doomedness($mode)) { &serverstatus($_); } + } elsif ($mode eq 'connections') { + print + "". + ""; + foreach (sort keys %hostname) { + my $remote=$_; + print ''; + } + print "\n"; +# connection matrix + foreach (sort keys %hostname) { + my $local=$_; + print ''; + foreach (sort keys %hostname) { + my $remote=$_; + if ($connectionstatus{$local.'_TO_'.$remote} eq 'not_yet') { + print ''; + } elsif ($connectionstatus{$local.'_TO_'.$remote} eq 'ok') { + print +''; + } else { + print + ''; + } + } + print "\n"; + } } + print "
 '.$remote.'
'.$local.' ok'. + $connectionstatus{$local.'_TO_'.$remote}.'
'; + &lonc($local); &lond($remote); + print '
"; # ============================================================== Close, refresh print "