Changeset 34041 for branches/meh_branches/ppstack_test/ippMonitor
- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 38 edited
- 11 copied
-
. (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/INSTALL (modified) (1 diff)
-
ippMonitor/Makefile.in (modified) (2 diffs)
-
ippMonitor/czartool/czarDbSchema.sql (copied) (copied from trunk/ippMonitor/czartool/czarDbSchema.sql )
-
ippMonitor/czartool/czarpoll.pl (modified) (2 diffs)
-
ippMonitor/czartool/czartool.pl (modified) (8 diffs)
-
ippMonitor/czartool/czartool/CzarDb.pm (modified) (2 diffs)
-
ippMonitor/czartool/czartool/DayMetrics.pm (modified) (9 diffs)
-
ippMonitor/czartool/czartool/Gpc1Db.pm (modified) (4 diffs)
-
ippMonitor/czartool/czartool/Plotter.pm (modified) (2 diffs)
-
ippMonitor/czartool/czartool/czarconfig.xml (modified) (3 diffs)
-
ippMonitor/czartool/roboczar.pl (modified) (1 diff)
-
ippMonitor/def/addRunRun.d (modified) (1 diff)
-
ippMonitor/def/addRunSummary.d (copied) (copied from trunk/ippMonitor/def/addRunSummary.d )
-
ippMonitor/def/autocode.php (modified) (2 diffs)
-
ippMonitor/def/camProcessedExp_Images.d (modified) (2 diffs)
-
ippMonitor/def/diffSummary_Images.d (modified) (1 diff)
-
ippMonitor/def/dvodbFaulted.d (copied) (copied from trunk/ippMonitor/def/dvodbFaulted.d )
-
ippMonitor/def/dvodbStatus.d (copied) (copied from trunk/ippMonitor/def/dvodbStatus.d )
-
ippMonitor/def/exposureStatus.d (modified) (1 diff)
-
ippMonitor/def/gpc1MysqlProcessList.d (modified) (1 diff)
-
ippMonitor/def/maskStats.d (modified) (1 diff)
-
ippMonitor/def/mergedvodbCopy.d (copied) (copied from trunk/ippMonitor/def/mergedvodbCopy.d )
-
ippMonitor/def/mergedvodbProcessed.d (copied) (copied from trunk/ippMonitor/def/mergedvodbProcessed.d )
-
ippMonitor/def/mergedvodbRun.d (copied) (copied from trunk/ippMonitor/def/mergedvodbRun.d )
-
ippMonitor/def/minidvodbProcessed.d (modified) (1 diff)
-
ippMonitor/def/minidvodbRun.d (modified) (1 diff)
-
ippMonitor/def/mopsStatus.d (modified) (1 diff)
-
ippMonitor/def/newImfile.d (modified) (1 diff)
-
ippMonitor/def/pzDoneImfile.d (modified) (1 diff)
-
ippMonitor/def/pzPendingImfile.d (modified) (1 diff)
-
ippMonitor/def/rawBurntoolState.d (modified) (1 diff)
-
ippMonitor/def/rawImfile.d (modified) (1 diff)
-
ippMonitor/def/summitImfile.d (modified) (1 diff)
-
ippMonitor/def/warpProcessedSkyfiles_Images.d (modified) (1 diff)
-
ippMonitor/raw/czartool_getplot.php (modified) (1 diff)
-
ippMonitor/raw/czartool_ipptopsps.php (modified) (3 diffs)
-
ippMonitor/raw/czartool_labels.php (modified) (10 diffs)
-
ippMonitor/raw/ipp.czar.dat (copied) (copied from trunk/ippMonitor/raw/ipp.czar.dat )
-
ippMonitor/raw/ipp.czar.php (copied) (copied from trunk/ippMonitor/raw/ipp.czar.php )
-
ippMonitor/raw/ipp.dvodb.dat (modified) (1 diff)
-
ippMonitor/raw/ipp.menu.dat (modified) (1 diff)
-
ippMonitor/raw/ipp.science.dat (modified) (1 diff)
-
ippMonitor/raw/nightSummary.php (modified) (1 diff)
-
ippMonitor/raw/site.php.in (modified) (2 diffs)
-
ippMonitor/scripts/generate (modified) (12 diffs)
-
ippMonitor/supervision (copied) (copied from trunk/ippMonitor/supervision )
-
ippMonitor/supervision/check_if_mysql_slave_is_running_fine.py (copied) (copied from trunk/ippMonitor/supervision/check_if_mysql_slave_is_running_fine.py )
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippMonitor
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20120405/ippMonitor (added) merged: 33949
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippMonitor/INSTALL
r33415 r34041 15 15 # note that we have a special version for ippmonitor without $PSCONFIG/$PSCONFDIR values: 16 16 ipp@ippdb03 / ippdb03 example: 17 psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config17 # psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 18 18 19 #ipp@ippdb03 / ippdb01 example: 20 psconfigure --dbhost ippdb03 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 21 22 # 23 # Regular installation on ippMonitor.ifa.hawaii.edu 24 # Note: we use a 'science databases (replication) slave' and the ippMonitor read-only account to connect to that database 25 psconfigure --dbhost scidbs1 --dbuser ippMonitor --dbpass ippMonitor --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config -
branches/meh_branches/ppstack_test/ippMonitor/Makefile.in
r33415 r34041 47 47 $(DESTWWW)/ipp.dvodb.dat \ 48 48 $(DESTWWW)/ipp.dvodb.php \ 49 $(DESTWWW)/ipp.czar.dat \ 50 $(DESTWWW)/ipp.czar.php \ 49 51 $(DESTWWW)/phptest.php \ 50 52 $(DESTWWW)/site.php \ … … 222 224 $(DESTWWW)/minidvodbCopy.php \ 223 225 $(DESTWWW)/minidvodbProcessed.php \ 226 $(DESTWWW)/mergedvodbRun.php \ 227 $(DESTWWW)/mergedvodbCopy.php \ 228 $(DESTWWW)/mergedvodbProcessed.php \ 229 $(DESTWWW)/dvodbStatus.php \ 230 $(DESTWWW)/dvodbFaulted.php \ 224 231 $(DESTWWW)/addRunRun.php \ 225 232 $(DESTWWW)/addRunProcessed.php \ 233 $(DESTWWW)/addRunSummary.php \ 226 234 $(DESTWWW)/lapSequenceSummary.php \ 227 235 $(DESTWWW)/lapRuns.php \ -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czarpoll.pl
r33415 r34041 38 38 39 39 my @stages = ( 40 "burntool",41 40 "chip", 42 41 "cam", … … 44 43 "warp", 45 44 "stack", 45 "staticsky", 46 46 "diff", 47 "magic",48 "magicDS",49 47 "dist", 50 "pub"); 48 "pub", 49 "chipbackground"); 51 50 52 51 my @ippToPspsStages = ( -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool.pl
r32093 r34041 32 32 my @publishingLabels = undef; 33 33 34 my @stages = ("chip", "cam", "fake", "warp", "stack", " diff", "magic", "magicDS", "dist", "pub");34 my @stages = ("chip", "cam", "fake", "warp", "stack", "staticsky", "diff", "dist", "pub", "chipbackground"); 35 35 promptPoll(); 36 36 … … 155 155 156 156 chomp($label); 157 158 printf("\n+----------------------------------------------------------------------------------------------------------------------------------------------+\n"); 159 printf("| %32s |\n", $label); 160 printf("+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 161 printf("| state | chip | cam | fake | warp | stack | diff | magic | destreak | dist | publish |\n"); 162 printf("+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 157 my $stage; 158 159 printf("\n| %32s \n", $label); 160 printf("+------------+"); 161 foreach $stage (@stages) { 162 print "--------------+" 163 } 164 printf("\n"); 165 printf("| state |"); 166 foreach $stage (@stages) { 167 168 printf("%14s|", $stage) 169 } 170 printf("\n"); 171 printf("+------------+"); 172 foreach $stage (@stages) { 173 print "--------------+" 174 } 175 printf("\n"); 163 176 164 177 my $state; 165 my $stage;166 178 my $i=0; 167 179 foreach $state (@states) { … … 172 184 foreach $stage (@stages) { 173 185 174 printf("| %10s", getStateAndFaultsString($label, $state, $stage));186 printf("|%14s", getStateAndFaultsString($label, $state, $stage)); 175 187 } 176 188 … … 179 191 } 180 192 181 printf("+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 193 printf("+------------+"); 194 foreach $stage (@stages) { 195 print "--------------+" 196 } 197 printf("\n"); 182 198 183 199 } … … 191 207 my ($state) = @_; 192 208 #print time, $/; 193 printf("\n+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"); 194 printf("| %10s (any faults are shown in parentheses) |\n", $state); 195 printf("+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+\n"); 196 printf("| no | label | distributing? | publishing? | chip | cam | fake | warp | stack | diff | magic | destreak | dist | publish |\n"); 197 printf("+-----+----------------------------------+---------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 209 my $stage; 210 211 printf("|\n"); 212 printf("+-----+----------------------------------+---------------+---------------+"); 213 foreach $stage (@stages) { 214 print "--------------+" 215 } 216 printf("\n"); 217 printf("| no | label | distributing? | publishing? |"); 198 218 199 219 my $stdsLabel; … … 202 222 my $distributing; 203 223 my $publishing; 204 my $stage;205 224 my $i=1; 225 foreach $stage (@stages) { 226 227 printf("%14s|", $stage) 228 } 229 printf("\n"); 230 printf("+-----+----------------------------------+---------------+---------------+"); 231 foreach $stage (@stages) { 232 print "--------------+" 233 } 234 printf("\n"); 235 206 236 foreach $stdsLabel (@stdscienceLabels) { 207 237 … … 225 255 foreach $stage (@stages) { 226 256 227 printf("| %10s", getStateAndFaultsString($stdsLabel, $state, $stage));257 printf("|%14s", getStateAndFaultsString($stdsLabel, $state, $stage)); 228 258 } 229 259 … … 232 262 } 233 263 234 printf("+-----+----------------------------------+---------------+---------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+------------+\n"); 264 printf("+-----+----------------------------------+---------------+---------------+"); 265 foreach $stage (@stages) { 266 print "--------------+" 267 } 268 printf("\n"); 235 269 236 270 } -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool/CzarDb.pm
r33415 r34041 9 9 10 10 my @stages = ( 11 "burntool",12 11 "chip", 13 12 "cam", … … 16 15 "stack", 17 16 "diff", 18 "magic",19 "magicDS",20 17 "dist", 21 "pub"); # TODO put elsewhere 18 "pub", 19 "chipbackground"); # TODO put elsewhere 22 20 23 21 my @ippToPspsStages = ( -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool/DayMetrics.pm
r32093 r34041 40 40 $self->{begin} = "$yesterday " . $self->{config}->getMetricsStartTime(); 41 41 $self->{end} = $self->{czarDb}->addInterval($self->{begin}, "1 DAY"); 42 $self->{ burntoolEnd} = $self->{czarDb}->addInterval($self->{begin}, "12 HOUR");42 $self->{chipEnd} = $self->{czarDb}->addInterval($self->{begin}, "12 HOUR"); 43 43 44 44 # create path, dir and html file … … 67 67 my $htmlFile = $self->{htmlFile}; 68 68 69 # summit and burntoolexposures69 # summit and chip exposures 70 70 my $summitExposures = $self->{gpc1Db}->countScienceExposuresFromLastNight($self->{day}); 71 my $ burntoolMetrics = new czartool::StageMetrics("burntool", "all_stdscience_labels", $self->{begin}, $self->{burntoolEnd});72 $self->{czarDb}->runAnalysis($ burntoolMetrics);71 my $chipMetrics = new czartool::StageMetrics("chip", "all_stdscience_labels", $self->{begin}, $self->{chipEnd}); 72 $self->{czarDb}->runAnalysis($chipMetrics); 73 73 74 74 my $previousDay = $self->{czarDb}->subtractInterval($self->{day}, "1 DAY"); … … 78 78 print $htmlFile "<a href=\"../$previousDay/index.html\"> \< previous day</a> | <a href=\"../index.html\">all</a> | <a href=\"../$nextDay/index.html\">next day \></a><br>\n"; 79 79 print $htmlFile "Measured from $self->{begin} to $self->{end} HST<br>\n"; 80 printf ( $htmlFile "%d exposures taken on summit last night, %d through burntooltoday</h5>\n",81 $summitExposures, $ burntoolMetrics->getProcessed() ? $burntoolMetrics->getProcessed() : 0 );80 printf ( $htmlFile "%d exposures taken on summit last night, %d through chip today</h5>\n", 81 $summitExposures, $chipMetrics->getProcessed() ? $chipMetrics->getProcessed() : 0 ); 82 82 print $htmlFile "</head>\n"; 83 83 print $htmlFile "<body>\n"; … … 98 98 my %labelTables; 99 99 100 my @stages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist"); 100 my @stages = ( 101 "chip", 102 "cam", 103 "fake", 104 "warp", 105 "stack", 106 "staticsky", 107 "diff", 108 "dist", 109 "chipbackground"); 101 110 102 111 … … 126 135 foreach my $stage ( @stages ){ 127 136 128 my $stageMetrics = new czartool::StageMetrics($stage, $label, $self->{begin}, ($stage eq " burntool") ? $self->{burntoolEnd} : $self->{end});137 my $stageMetrics = new czartool::StageMetrics($stage, $label, $self->{begin}, ($stage eq "chip") ? $self->{chipEnd} : $self->{end}); 129 138 if (!$self->{czarDb}->runAnalysis($stageMetrics)) {next;} 130 139 … … 253 262 print $htmlFile " <tr>\n"; 254 263 print $htmlFile " <th>Survey</th>\n"; 255 print $htmlFile " <th>Started burntool</th>\n";264 print $htmlFile " <th>Started chip</th>\n"; 256 265 print $htmlFile " <th>Finished distribution</th>\n"; 257 266 print $htmlFile " <th>Time taken</th>\n"; … … 260 269 # OSS survey 261 270 my ($started, $finished, $timeTaken) = undef; 262 $self->{czarDb}->getDayTimings("OSS.nightlyscience", " burntool", "diff", $self->{begin}, \$started, \$finished, \$timeTaken);271 $self->{czarDb}->getDayTimings("OSS.nightlyscience", "chip", "diff", $self->{begin}, \$started, \$finished, \$timeTaken); 263 272 $self->printSurveyDetails("OSS", $started, $finished, $timeTaken); 264 273 … … 285 294 foreach $mdf (@mdfs) { 286 295 287 if ($self->{czarDb}->getDayTimings($mdf, " burntool", "dist", $self->{begin}, \$started, \$finished, \$timeTaken)) {296 if ($self->{czarDb}->getDayTimings($mdf, "chip", "dist", $self->{begin}, \$started, \$finished, \$timeTaken)) { 288 297 289 298 if ($started && $self->{czarDb}->isBefore($started, $earliest)) {$earliest = $started; $haveStart = 1;} … … 299 308 $self->printSurveyDetails("MDF", $earliest, $latest, $timeTaken); 300 309 301 $self->{czarDb}->getDayTimings("all_stdscience_labels", " burntool", "dist", $self->{begin}, \$started, \$finished, \$timeTaken);310 $self->{czarDb}->getDayTimings("all_stdscience_labels", "chip", "dist", $self->{begin}, \$started, \$finished, \$timeTaken); 302 311 $self->printSurveyDetails("All", $started, $finished, $timeTaken); 303 312 -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool/Gpc1Db.pm
r33415 r34041 24 24 elsif ($stage eq "warp") {${$joinTable}="warpSkyfile";} 25 25 elsif ($stage eq "stack") {${$joinTable}="stackSumSkyfile";} 26 elsif ($stage eq "staticsky") {${$id} = "sky_id"; ${$joinTable}="staticskyResult";} 26 27 elsif ($stage eq "diff") {${$joinTable}="diffSkyfile";} 27 28 elsif ($stage eq "magic") {${$joinTable}="magicNodeResult";} … … 29 30 elsif ($stage eq "dist") {${$joinTable}="distComponent";} 30 31 elsif ($stage eq "pub") {${$joinTable}="publishDone";} 32 elsif ($stage eq "chipbackground") {${$id}="chip_bg_id"; ${$joinTable}="chipBackgroundImfile";} 31 33 else { 32 34 … … 51 53 elsif ($stage eq "warp" ) {return "warpRun";} 52 54 elsif ($stage eq "stack" ) {return "stackRun";} 55 elsif ($stage eq "staticsky" ) {return "staticskyRun";} 53 56 elsif ($stage eq "diff" ) {return "diffRun";} 54 57 elsif ($stage eq "magic" ) {return "magicRun";} … … 56 59 elsif ($stage eq "dist" ) {return "distRun";} 57 60 elsif ($stage eq "pub" ) {return "publishRun";} 61 elsif ($stage eq "chipbackground" ) {return "chipBackgroundRun";} 58 62 59 63 return "ERROR"; -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool/Plotter.pm
r33415 r34041 11 11 12 12 my @allStages = ( 13 "burntool",14 13 "chip", 15 14 "cam", … … 17 16 "warp", 18 17 "stack", 18 "staticsky", 19 19 "diff", 20 "magic",21 "magicDS",22 20 "dist", 23 "pub"); 21 "pub", 22 "chipbackground"); 24 23 25 24 my @allIppToPspsStages = ( -
branches/meh_branches/ppstack_test/ippMonitor/czartool/czartool/czarconfig.xml
r33415 r34041 21 21 <gpc1database> 22 22 <name>gpc1</name> 23 <host> ippdb01</host>23 <host>scidbs1</host> 24 24 <user>ippMonitor</user> 25 25 <password>ippMonitor</password> … … 29 29 <czardatabase> 30 30 <name>czardb</name> 31 <host> ippdb01</host>31 <host>scidbm</host> 32 32 <user>ipp</user> 33 33 <password>ipp</password> … … 46 46 47 47 </czarconfig> 48 -
branches/meh_branches/ppstack_test/ippMonitor/czartool/roboczar.pl
r32098 r34041 21 21 my $czarDb = $config->getCzarDbInstance(); 22 22 23 my @stages = ("burntool", "chip", "cam", "fake", "warp", "stack", "diff", "magic", "magicDS", "dist"); # TODO get from Pantasks 23 my @stages = ( 24 "chip", 25 "cam", 26 "fake", 27 "warp", 28 "stack", 29 "staticsky", 30 "diff", 31 "dist", 32 "chipbackground"); # TODO get from Pantasks 24 33 25 34 my @interestedServers = $config->getRoboczarInterestedServers(); -
branches/meh_branches/ppstack_test/ippMonitor/def/addRunRun.d
r31320 r34041 9 9 10 10 # field size format name show link to extras 11 FIELD distinct(addRun.add_id), 5, %d, addID11 FIELD addRun.add_id, 5, %d, addID 12 12 FIELD addRun.stage, 5, %s, stage 13 FIELD addRun.stage_id, 5, %d, stage ID 14 FIELD addRun.add_id, 5, %d, add ID 13 FIELD addRun.stage_id, 5, %d, stageID 14 FIELD addRun.stage_extra1, 5, %d, stageExtra1 15 #FIELD addRun.add_id, 5, %d, addID 15 16 FIELD addRun.state, 5, %s, state 16 FIELD addRun.workdir, 5, %s, workdir17 FIELD addRun.reduction, 5, %s, reduction17 FIELD addRun.workdir, 5, %s, workdir 18 FIELD addRun.reduction, 5, %s, reduction 18 19 FIELD addRun.label, 5, %s, label 19 FIELD addRun.data_group, 5, %s, data_group20 FIELD addRun.data_group, 5, %s, data_group 20 21 FIELD addRun.dvodb, 5, %s, dvodb 21 FIELD addRun.note, 5, %s, note 22 FIELD addRun.image_only, 5, %d, image_only 23 FIELD addRun.minidvodb, 5, %d, minidvodb 24 FIELD addRun.minidvodb_group, 5, %s, minidvodb_group 25 FIELD addRun.minidvodb_name, 5, %s, minidvodb_name 26 27 22 FIELD addRun.note, 5, %s, note 23 FIELD addRun.image_only, 5, %d, image_only 24 FIELD addRun.minidvodb, 5, %d, minidvodb 25 FIELD addRun.minidvodb_group, 5, %s, minidvodb_group 26 FIELD addRun.minidvodb_name, 5, %s, minidvodb_name -
branches/meh_branches/ppstack_test/ippMonitor/def/autocode.php
r29485 r34041 28 28 // ** TABLE RESTRICTIONS ** 29 29 30 // Note: the restriction is now moved AFTER the count query 31 // unless the RESTRICT_COUNT keyword is used 30 32 if ($restricted == 0) { 31 if ("$ UNRESTRICTED" != "none") {32 $WHERE = "$WHERE $ UNRESTRICTED";33 if ("$RESTRICT_COUNT" != "none") { 34 $WHERE = "$WHERE $RESTRICT_COUNT"; 33 35 } 34 36 } … … 56 58 menu_end(); 57 59 } 60 61 // Restrict the query if it is necessary 62 if ($restricted == 0) { 63 if ( ("$UNRESTRICTED" != "none") && ("$RESTRICT_COUNT" == "none") ) { 64 $WHERE = "$WHERE $UNRESTRICTED"; 65 } 66 } 67 58 68 // set up the row counter variables 59 69 if ($ID['from']) { -
branches/meh_branches/ppstack_test/ippMonitor/def/camProcessedExp_Images.d
r31828 r34041 3 3 FILE camProcessedExp_Images.php 4 4 MENU ipp.science.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 # the following WHERE clauses are added to all queries joined by AND … … 10 12 WHERE camProcessedExp.cam_id = camRun.cam_id 11 13 WHERE camProcessedExp.fault = 0 12 13 14 # define image names to be used below 14 15 # IMAGE VAR basename filerule camera class_id -
branches/meh_branches/ppstack_test/ippMonitor/def/diffSummary_Images.d
r28654 r34041 3 3 FILE diffSummary_Images.php 4 4 MENU ipp.stack.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE diffRun.diff_id = diffSkyfile.diff_id -
branches/meh_branches/ppstack_test/ippMonitor/def/exposureStatus.d
r29404 r34041 2 2 TITLE Exposures Status 3 3 FILE exposureStatus.php 4 MENU ipp. imfiles.dat4 MENU ipp.czar.dat 5 5 6 6 WHERE object != 'ENGINEERING' -
branches/meh_branches/ppstack_test/ippMonitor/def/gpc1MysqlProcessList.d
r29481 r34041 2 2 TITLE GPC 1 MySql Process List 3 3 FILE gpc1MysqlProcessList.php 4 MENU ipp. imfiles.dat4 MENU ipp.czar.dat 5 5 6 6 FIELD ID, 5, %d, Process ID -
branches/meh_branches/ppstack_test/ippMonitor/def/maskStats.d
r28451 r34041 2 2 TITLE Mask Stats 3 3 FILE maskStats.php 4 MENU ipp. imfiles.dat4 MENU ipp.czar.dat 5 5 6 6 WHERE rawExp.exp_id = chipRun.exp_id -
branches/meh_branches/ppstack_test/ippMonitor/def/minidvodbProcessed.d
r30453 r34041 9 9 10 10 # field size format name show link to extras 11 FIELD distinct(minidvodbRun.minidvodb_id), 5, %d, Minidvodb ID 12 11 FIELD minidvodbRun.minidvodb_id, 5, %d, Minidvodb ID 13 12 FIELD minidvodbRun.minidvodb_name, 5, %s, minidvodb_name 14 13 FIELD minidvodbRun.minidvodb_group, 5, %s, minidvodb_group 15 FIELD minidvodbProcessed.merge_order, 5, %d, Merge Order16 14 FIELD minidvodbProcessed.dtime_resort, 5, %d, resort time 17 15 FIELD minidvodbProcessed.dtime_relphot, 5, %d, relphot time 18 FIELD minidvodbProcessed.dtime_merge, 5, %d, dvomerge time 19 FIELD minidvodbProcessed.mergedvodb_path, 25, %s, mergedvodb_path 16 FIELD minidvodbProcessed.dtime_script, 5, %d, script time 20 17 FIELD state, 5, %s, State 21 18 FIELD minidvodbProcessed.fault, 5, %d, Fault -
branches/meh_branches/ppstack_test/ippMonitor/def/minidvodbRun.d
r30453 r34041 9 9 10 10 # field size format name show link to extras 11 FIELD distinct(minidvodbRun.minidvodb_id), 5, %d, Minidvodb ID11 FIELD minidvodbRun.minidvodb_id, 5, %d, Minidvodb ID 12 12 FIELD minidvodbRun.minidvodb_name, 5, %s, minidvodb_name 13 13 FIELD minidvodbRun.minidvodb_group, 5, %s, minidvodb_group 14 14 FIELD minidvodbRun.minidvodb_path, 25, %s, minidvodb_path 15 FIELD minidvodbRun.mergedvodb_path, 25, %s, mergedvodb_path15 #FIELD minidvodbRun.mergedvodb_path, 25, %s, mergedvodb_path 16 16 FIELD state, 5, %s, State 17 17 FIELD creation_date, 5, %T, epoch -
branches/meh_branches/ppstack_test/ippMonitor/def/mopsStatus.d
r33415 r34041 2 2 TITLE MOPS Status 3 3 FILE mopsStatus.php 4 MENU ipp. imfiles.dat4 MENU ipp.czar.dat 5 5 #WHERE rawExp.obs_mode!='ENGINEERING' 6 6 -
branches/meh_branches/ppstack_test/ippMonitor/def/newImfile.d
r18193 r34041 4 4 MENU ipp.load.dat 5 5 6 UNRESTRICTED WHERE 0>1 7 6 8 # field size format name show link to extras 7 9 FIELD exp_id, 5, %d, exposure ID -
branches/meh_branches/ppstack_test/ippMonitor/def/pzDoneImfile.d
r16638 r34041 3 3 FILE pzDoneImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE pzDownloadImfile.fault = 0 -
branches/meh_branches/ppstack_test/ippMonitor/def/pzPendingImfile.d
r16638 r34041 3 3 FILE pzPendingImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE summitImfile.exp_name = pzDownloadExp.exp_name -
branches/meh_branches/ppstack_test/ippMonitor/def/rawBurntoolState.d
r30690 r34041 5 5 6 6 # if no query restrictions are supplied, we want to limit the query or it is extremely long running: 7 RESTRICT_COUNT WHERE 0>1 7 8 UNRESTRICTED WHERE exp_id = 0 8 9 -
branches/meh_branches/ppstack_test/ippMonitor/def/rawImfile.d
r26991 r34041 5 5 6 6 # HEAD PHP insert_backref ("rawExp.php", "exp_id", $ID['link']); 7 8 UNRESTRICTED WHERE 0>1 7 9 8 10 OP OP1 $ra * 57.295783 -
branches/meh_branches/ppstack_test/ippMonitor/def/summitImfile.d
r16617 r34041 3 3 FILE summitImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED WHERE 0>1 5 7 6 8 # field size format name show link to extras -
branches/meh_branches/ppstack_test/ippMonitor/def/warpProcessedSkyfiles_Images.d
r33415 r34041 1 1 TABLE rawExp JOIN chipRun USING(exp_id) JOIN camRun USING(chip_id) JOIN fakeRun USING(cam_id) JOIN warpRun USING(fake_id) JOIN warpSkyfile USING(warp_id) 2 2 TITLE Warp Processed Skyfiles 3 FILE warpProcessedSkyfiles .php3 FILE warpProcessedSkyfiles_Images.php 4 4 MENU ipp.science.dat 5 5 -
branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_getplot.php
r33415 r34041 30 30 else if ($type=="st") 31 31 $filePath = "$path/czarplot_cluster.png"; 32 else if ($type=="id") 33 $filePath = "$path/ippToPsps_density_".$label.".png"; 32 34 33 35 -
branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_ipptopsps.php
r33415 r34041 23 23 24 24 if ($ID['menu']) {$myMenu = $ID['menu'];} 25 else {$myMenu = "ipp. imfiles.dat";}25 else {$myMenu = "ipp.czar.dat";} 26 26 27 27 menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']); … … 78 78 79 79 $debug = 0; 80 $table = "<table bgcolor=\"#FFFFFF\" width=\" 700\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n";80 $table = "<table bgcolor=\"#FFFFFF\" width=\"900\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n"; 81 81 82 82 … … 155 155 echo "<br>"; 156 156 157 echo "<br>"; 158 echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=id&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>"; 159 echo "<br>"; 160 157 161 echo "</table>"; 158 162 -
branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_labels.php
r33415 r34041 23 23 24 24 if ($ID['menu']) {$myMenu = $ID['menu'];} 25 else {$myMenu = "ipp. imfiles.dat";}25 else {$myMenu = "ipp.czar.dat";} 26 26 27 27 menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']); 28 28 29 29 $stages=array( 30 "burntool",31 30 "chip", 32 31 "cam", … … 34 33 "warp", 35 34 "stack", 35 "staticsky", 36 36 "diff", 37 "magic",38 "magicDS",39 37 "dist", 40 "pub"); 38 "pub", 39 "chipbackground"); 41 40 42 41 $servers=array( … … 92 91 93 92 $debug = 0; 94 $table = "<table bgcolor=\"#FFFFFF\" width=\" 700\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n";93 $table = "<table bgcolor=\"#FFFFFF\" width=\"900\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n"; 95 94 96 95 $labels = getLabels($czardb, $selectedMode); … … 172 171 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>"; 173 172 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp0022.ifa.hawaii.edu/ps1sc/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 174 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">here</font></a></td></tr>"; 173 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">All</font></a> "; 174 echo "<a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLog_".(date("Ymd")-date("w")+"1")."\">This week</a>"; 175 echo "</td></tr>"; 175 176 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>"; 176 177 … … 216 217 showReplicationsStatus($REPL_HOST_PSTAMP, $REPL_USER_PSTAMP, $REPL_PASSWORD_PSTAMP, $REPL_DBNAME_PSTAMP); 217 218 showReplicationsStatus($REPL_HOST_IPPADMIN, $REPL_USER_IPPADMIN, $REPL_PASSWORD_IPPADMIN, $REPL_DBNAME_IPPADMIN); 219 showReplicationsStatus($REPL_HOST_ISP, $REPL_USER_ISP, $REPL_PASSWORD_ISP, $REPL_DBNAME_ISP); 218 220 echo "</table>"; 219 221 … … 441 443 $anyFaults = false; 442 444 443 $link = $defaultlink;444 getStateAndFaults($db, $thisLabel, $selectedState, "burntool", $str, $anyFaults);445 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0);446 447 445 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=".$searchState; 448 446 getStateAndFaults($db, $thisLabel, $selectedState, "chip", $str, $anyFaults); … … 465 463 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 466 464 465 $link = $defaultlink; 466 getStateAndFaults($db, $thisLabel, $selectedState, "staticsky", $str, $anyFaults); 467 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 468 467 469 $link = "failedDiffSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&diffRun.label=" . $thisLabel . "&diffRun.state=".$searchState; 468 470 getStateAndFaults($db, $thisLabel, $selectedState, "diff", $str, $anyFaults); … … 470 472 471 473 $link = $defaultlink; 472 getStateAndFaults($db, $thisLabel, $selectedState, "magic", $str, $anyFaults);473 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);474 475 $link = $defaultlink;476 getStateAndFaults($db, $thisLabel, $selectedState, "magicDS", $str, $anyFaults);477 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null);478 479 $link = $defaultlink;480 474 getStateAndFaults($db, $thisLabel, $selectedState, "dist", $str, $anyFaults); 481 475 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$distributing) ? "gray" : null); … … 485 479 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, (!$isUpdate && !$publishing) ? "gray" : null); 486 480 481 $link = $defaultlink; 482 getStateAndFaults($db, $thisLabel, $selectedState, "chipbackground", $str, $anyFaults); 483 createFormattedTableCell($anyFaults, $link, $str, $anyFaults, 0); 484 487 485 echo "</tr>\n"; 488 486 } … … 492 490 createFormattedTableCell(($selectedLabel != "all"), $link, "All labels", 0, null); 493 491 494 createFormattedTableCell(0, null, "Reverting?", 0, "$columnHeaderColor");495 496 492 foreach ($stages as &$stage) { 497 493 498 if ($stage == "burntool") continue;499 494 $reverting = getRevertStatus($db, $stage); 500 #$link = 501 # "czartool_labels.php?pass=".$pass 502 # ."&proj=".$proj 503 # ."&mode=" .$selectedMode 504 # ."&label=".$selectedLabel 505 # ."&stage=".$selectedStage 506 # ."&plottype=".$plotType 507 # ."&revertstage=".$stage 508 # ."&revertmode="; 509 # 510 #if(!$reverting) {$label = "Start";$link = $link . "on";} 511 #if($reverting) {$label = "Stop";$link = $link . "off";} 512 if(!$reverting) {$label = "no";} 513 if($reverting) {$label = "yes";} 495 if(!$reverting) {$label = "";} 496 if($reverting) {$label = "reverting";} 514 497 unset($reverting); 515 #createFormattedTableCell(1, $link, $label, 0, "$columnHeaderColor");516 498 createFormattedTableCell(0, null, $label, 0, "$columnHeaderColor"); 517 #echo "<td><a href=\"$link\"><font color=\"blue\">$label</font></td>";518 519 499 } 520 500 -
branches/meh_branches/ppstack_test/ippMonitor/raw/ipp.dvodb.dat
r30453 r34041 9 9 10 10 menulink | menuselect | link | minidvodbRun | minidvodbRun.php 11 menulink | menuselect | link | minidvodbProcessed | minidvodbProcessed.php 11 menulink | menuselect | link | minidvodbProcessed | minidvodbProcessed.php 12 12 menulink | menuselect | link | minidvodbCopy | minidvodbCopy.php 13 13 14 menutop | menutop | plain | | 15 16 menulink | menuselect | link | mergedvodbRun | mergedvodbRun.php 17 menulink | menuselect | link | mergedvodbProcessed | mergedvodbProcessed.php 18 menulink | menuselect | link | mergedvodbCopy | mergedvodbCopy.php 19 20 menutop | menutop | plain | | 21 22 menulink | menuselect | link | dvodbStatus | dvodbStatus.php 23 menulink | menuselect | link | dvodbFaulted | dvodbFaulted.php 24 menulink | menuselect | link | addRun Summary | addRunSummary.php -
branches/meh_branches/ppstack_test/ippMonitor/raw/ipp.menu.dat
r31816 r34041 27 27 menutop | menutop | link | Calibration | ipp.cal.php 28 28 menutop | menutop | link | Plots | ipp.plots.php 29 menutop | menutop | link | Czar | ipp.czar.php 29 30 menutop | menutop | link | Admin and Debug | ipp.imfiles.php -
branches/meh_branches/ppstack_test/ippMonitor/raw/ipp.science.dat
r28688 r34041 38 38 menulink | menuselect | link | Warp Skyfile Inputs | warpStageSkyfileInputs.php 39 39 menulink | menuselect | link | Warp Processed Skyfiles | warpProcessedSkyfiles.php 40 #menulink | menuselect | link | Warp Processed Skyfiles w/ Images | warpProcessedSkyfiles_images.php 40 41 menulink | menuselect | link | Warp Failed Skyfiles | warpFailedSkyfiles.php 41 42 -
branches/meh_branches/ppstack_test/ippMonitor/raw/nightSummary.php
r33415 r34041 52 52 $myMenu = $ID['menu']; 53 53 } else { 54 $myMenu = "ipp. imfiles.dat";54 $myMenu = "ipp.czar.dat"; 55 55 } 56 56 -
branches/meh_branches/ppstack_test/ippMonitor/raw/site.php.in
r31812 r34041 25 25 $REPL_USER_IPPADMIN = "ippMonitor"; 26 26 $REPL_PASSWORD_IPPADMIN = "ippMonitor"; 27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb )";27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb, ipptopsps, megacam, ssp, uip)" ; 28 28 29 29 $REPL_HOST_NEBULOUS = "ippdb02.IfA.Hawaii.Edu"; 30 30 $REPL_USER_NEBULOUS = "ippMonitor"; 31 31 $REPL_PASSWORD_NEBULOUS = "ippMonitor"; 32 $REPL_DBNAME_NEBULOUS = "ippdb02 ( Nebulous)";32 $REPL_DBNAME_NEBULOUS = "ippdb02 (nebulous)"; 33 33 34 34 $REPL_HOST_PSTAMP = "ippc19.IfA.Hawaii.Edu"; … … 40 40 $REPL_USER_GPC1 = "ippMonitor"; 41 41 $REPL_PASSWORD_GPC1 = "ippMonitor"; 42 $REPL_DBNAME_GPC1 = "ippdb03 (gpc1, isp, ippadmin, czardb)"; 42 $REPL_DBNAME_GPC1 = "ippdb03 (czardb, gpc1, ippadmin, ipptopsps, megacam, skycells, ssp, uip)"; 43 44 $REPL_HOST_ISP = "ippc17.IfA.Hawaii.Edu"; 45 $REPL_USER_ISP = "ippMonitor"; 46 $REPL_PASSWORD_ISP = "ippMonitor"; 47 $REPL_DBNAME_ISP = "ippc17 (isp)"; 48 49 43 50 44 51 ?> -
branches/meh_branches/ppstack_test/ippMonitor/scripts/generate
r31816 r34041 29 29 &init_key ("MODE"); 30 30 &init_key ("UNRESTRICTED"); 31 &init_key ("RESTRICT_COUNT"); 31 32 &init_key ("TABLE"); 32 33 &init_key ("TITLE"); … … 46 47 if ($key eq "TABLE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 47 48 if ($key eq "TYPE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 48 if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; }49 if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; }50 if ($key eq "PLOTTITLE") { 51 ($value) = $value =~ m|^\s*(.+)\s*$|;52 $value =~ s/\s/_/g;53 }49 if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 50 if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 51 if ($key eq "PLOTTITLE") { 52 ($value) = $value =~ m|^\s*(.+)\s*$|; 53 $value =~ s/\s/_/g; 54 } 54 55 55 56 &set_keypair ($key, $value); … … 61 62 if ($field =~ m|\S+\s+as\s+\S+|) { 62 63 ($fieldreal) = $field =~ m|\S+\s+as\s+(\S+)|; 63 #print STDERR "Case 1\n";64 #print STDERR "Case 1\n"; 64 65 } elsif ($field =~ m|\S+\s+AS\s+\S+|) { 65 #print STDERR "field=$field\n";66 $fieldreal = $field;67 $fieldreal =~ s/\s+AS.*$//;66 #print STDERR "field=$field\n"; 67 $fieldreal = $field; 68 $fieldreal =~ s/\s+AS.*$//; 68 69 #($fieldreal) = $field =~ m|\S+\s+as\s+(\S+)|; 69 #print STDERR "Case 2\n";70 #print STDERR "Case 2\n"; 70 71 } else { 71 72 $fieldreal = $field; 72 #print STDERR "Case 3\n";73 #print STDERR "Case 3\n"; 73 74 } 74 #print STDERR "field=[$field]\tfieldreal=[$fieldreal]\n";75 #print STDERR "field=[$field]\tfieldreal=[$fieldreal]\n"; 75 76 76 77 if ($VERBOSE) { printf "%-20s %-20s %-20s %-20s %-20s %-20s\n", $field, $name, $format, $show, $link, $extras; } … … 141 142 &check_key ("MODE", "basic"); 142 143 &check_key ("UNRESTRICTED", "none"); 144 &check_key ("RESTRICT_COUNT", "none"); 143 145 &check_key ("TABLE", ""); 144 146 &check_key ("TITLE", ""); … … 324 326 # generate a WHERE test for each field (field != *) 325 327 sub write_table_restrict { 326 327 328 if ($WHERE) { 328 329 print FILE "\$WHERE = \"WHERE $WHERE\";\n"; … … 348 349 } 349 350 350 # Generate GROUP BY statement if any 351 # Generate GROUP BY statement if any 351 352 sub write_group_by { 352 353 print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n"; … … 536 537 @extfields = split (/,/, $extras); 537 538 for ($i = 0; $i < @extfields; $i++) { 538 # print STDERR $extfields[$i],"\n";539 # print STDERR $extfields[$i],"\n"; 539 540 ($label, $value, $outline) = &parse_label ($extfields[$i]); 540 # print STDERR "[",$label,"]","[",$value,"]","[",$outline,"\n";541 # print STDERR "[",$label,"]","[",$value,"]","[",$outline,"\n"; 541 542 print FILE " \$link = \$link . \"&$outline\";\n"; 542 543 } … … 553 554 # print STDERR "#############################\n"; 554 555 # foreach my $key ( keys %linkarg ) { 555 # print STDERR "key: $key, value: $linkarg{$key}\n";556 # print STDERR "key: $key, value: $linkarg{$key}\n"; 556 557 # } 557 558 … … 560 561 561 562 if ($linkarg{$word}) { 562 # print STDERR "Case 1\n";563 # print STDERR "Case 1\n"; 563 564 $linkarg{$word} = "$linkarg{$word},$value"; 564 565 } else { 565 # print STDERR "Case 2\n";566 # print STDERR "Case 2\n"; 566 567 $linkarg{$word} = $value; 567 568 } … … 585 586 # print STDERR "### parse_label ###\n"; 586 587 # for ($i = 0; $i < @field; $i++) { 587 # print STDERR "field[$i]=$field[$i]\n";588 # print STDERR "field[$i]=$field[$i]\n"; 588 589 # } 589 590 # for ($i = 0; $i < @fieldreal; $i++) { 590 # print STDERR "fieldreal[$i]=$fieldreal[$i]\n";591 # print STDERR "fieldreal[$i]=$fieldreal[$i]\n"; 591 592 # } 592 593 # for ($i = 0; $i < @count; $i++) { 593 # print STDERR "count[$i]=$count[$i]\n";594 # print STDERR "count[$i]=$count[$i]\n"; 594 595 # } 595 596 … … 598 599 if ($string =~ m|\S+=\S+|) { 599 600 ($label, $value) = $string =~ m|(\S+)=(\S+)|; 600 # print STDERR "value=$value\n";601 # print STDERR "value=$value\n"; 601 602 if ($value =~ m|^\$|) { 602 603 MATCH_LABEL: … … 669 670 $name = &parse_fieldname ($name); 670 671 if (exists $ops{$name}) { 671 #if OPx was defined, replace it by its value672 $name = $ops{$name};673 $name =~ s/\s+//g;672 #if OPx was defined, replace it by its value 673 $name = $ops{$name}; 674 $name =~ s/\s+//g; 674 675 } 675 676 $camera = &parse_fieldname ($camera);
Note:
See TracChangeset
for help on using the changeset viewer.
