--- loncom/cgi/clusterstatus.pl 2003/08/05 18:33:08 1.16 +++ loncom/cgi/clusterstatus.pl 2003/08/13 21:41:47 1.18 @@ -3,7 +3,7 @@ $|=1; # The LearningOnline Network with CAPA # Cluster Status # -# $Id: clusterstatus.pl,v 1.16 2003/08/05 18:33:08 www Exp $ +# $Id: clusterstatus.pl,v 1.18 2003/08/13 21:41:47 www Exp $ use lib '/home/httpd/lib/perl/'; use LONCAPA::Configuration; @@ -212,6 +212,11 @@ sub server { print &otherwindow($local,'/server-status','Server Status'); } +sub announcement { + my $local=shift; + print &otherwindow($local,'/announcement.txt','Announcement'); +} + # ========================================================= Produce a green bar sub bar { my $parm=shift; @@ -236,6 +241,7 @@ $local $hostdom{$local} ($hostna ENDHEADER &login($local);&server($local);&users($local);&versions($local); + &announcement($local); &loncron($local);&lond($local);&lonc($local);&runloncron($local); print ""; if ($trouble) { @@ -303,7 +309,7 @@ sub resetvars { $stat_total=0; $stat_notyet=0; $stat_fromcache=0; - + $concount=0; undef %host; %host=(); } @@ -431,12 +437,12 @@ sub reports { "". ""; foreach my $remote (sort keys %hostname) { - print ''; + print ''; } print "\n"; # connection matrix foreach my $local (sort keys %hostname) { - print ''; + print ''; foreach my $remote (sort keys %hostname) { if ($connectionstatus{$local.'_TO_'.$remote} eq 'not_yet') { my $cellcolor='#FFFFFF';
 '.$remote.''.$remote.'
'.$local.'
'.$local.'