Changeset 30586 for branches/czw_branch/20101203/ippMonitor
- Timestamp:
- Feb 11, 2011, 4:29:48 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 10 edited
- 9 copied
-
. (modified) (1 prop)
-
ippMonitor/Makefile.in (modified) (4 diffs)
-
ippMonitor/def/addRunProcessed.d (copied) (copied from trunk/ippMonitor/def/addRunProcessed.d )
-
ippMonitor/def/addRunRun.d (copied) (copied from trunk/ippMonitor/def/addRunRun.d )
-
ippMonitor/def/diffProcessedSkyfile_Images.d (modified) (1 diff)
-
ippMonitor/def/magicProcessedMasks_Images.d (modified) (2 diffs)
-
ippMonitor/def/minidvodbCopy.d (copied) (copied from trunk/ippMonitor/def/minidvodbCopy.d )
-
ippMonitor/def/minidvodbProcessed.d (copied) (copied from trunk/ippMonitor/def/minidvodbProcessed.d )
-
ippMonitor/def/minidvodbRun.d (copied) (copied from trunk/ippMonitor/def/minidvodbRun.d )
-
ippMonitor/def/mopsStatus.d (modified) (3 diffs)
-
ippMonitor/def/rawBurntoolState.d (copied) (copied from trunk/ippMonitor/def/rawBurntoolState.d )
-
ippMonitor/raw/czartool_exposures.php (copied) (copied from trunk/ippMonitor/raw/czartool_exposures.php )
-
ippMonitor/raw/czartool_labels.php (modified) (9 diffs)
-
ippMonitor/raw/ipp.dvodb.dat (copied) (copied from trunk/ippMonitor/raw/ipp.dvodb.dat )
-
ippMonitor/raw/ipp.dvodb.php (copied) (copied from trunk/ippMonitor/raw/ipp.dvodb.php )
-
ippMonitor/raw/ipp.load.dat (modified) (1 diff)
-
ippMonitor/raw/ipp.menu.dat (modified) (1 diff)
-
ippMonitor/raw/ipp.php (modified) (2 diffs)
-
ippMonitor/scripts/generate (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/ippMonitor/Makefile.in
r29651 r30586 43 43 $(DESTWWW)/ipp.stack.dat \ 44 44 $(DESTWWW)/ipp.stack.php \ 45 $(DESTWWW)/ipp.dvodb.dat \ 46 $(DESTWWW)/ipp.dvodb.php \ 45 47 $(DESTWWW)/phptest.php \ 46 48 $(DESTWWW)/site.php \ … … 55 57 $(DESTWWW)/czartool_labels.php \ 56 58 $(DESTWWW)/czartool_getplot.php \ 59 $(DESTWWW)/czartool_exposures.php \ 57 60 $(DESTWWW)/histogram.php \ 58 61 $(DESTWWW)/show_and_delete_image.php \ 59 62 $(DESTWWW)/scatterPlot.php \ 63 $(DESTWWW)/rawBurntoolState.php \ 60 64 $(DESTWWW)/plotHistogram.php \ 61 65 $(DESTWWW)/columns_in_db.php \ … … 64 68 $(DESTWWW)/warpProcessedExp.php \ 65 69 $(DESTWWW)/diskUsage.php \ 66 $(DESTWWW)/version.php 70 $(DESTWWW)/version.php 71 72 73 67 74 68 75 DEFSRC = \ … … 210 217 $(DESTWWW)/exposureStatus.php \ 211 218 $(DESTWWW)/mopsStatus.php \ 212 $(DESTWWW)/gpc1MysqlProcessList.php 219 $(DESTWWW)/gpc1MysqlProcessList.php \ 220 $(DESTWWW)/minidvodbRun.php \ 221 $(DESTWWW)/minidvodbCopy.php \ 222 $(DESTWWW)/minidvodbProcessed.php \ 223 $(DESTWWW)/addRunRun.php \ 224 $(DESTWWW)/addRunProcessed.php 225 226 213 227 214 228 PICTURES = \ -
branches/czw_branch/20101203/ippMonitor/def/diffProcessedSkyfile_Images.d
r27892 r30586 11 11 # IMAGE VAR basename filerule camera class_id 12 12 IMAGE JPEG2 $diffSkyfile.path_base PPSUB.OUTPUT.JPEG2 GPC1 NONE 13 14 # if no query restrictions are supplied, we want to limit the query or it is extremely long running: 15 UNRESTRICTED AND diffRun.diff_id = 0 13 16 14 17 # XXX need to get camera from lookup -
branches/czw_branch/20101203/ippMonitor/def/magicProcessedMasks_Images.d
r27892 r30586 11 11 ARGS ARG7 magicRun.magic_id=$magicRun.magic_id 12 12 ARGS ARG7 camera=GPC1 13 ARGS ARG7 basename=$magicRun.workdir/$magicRun.exp_id/$magicRun.exp_id.mgc.$magicRun.magic_id.verify/$magicRun.exp_id 13 #ARGS ARG7 basename=$magicRun.workdir/$magicRun.exp_id/$magicRun.exp_id.mgc.$magicRun.magic_id.verify/$magicRun.exp_id 14 ARGS ARG7 basename=$magicMask.path_base 14 15 15 16 # field size format name show link to extras … … 25 26 FIELD magicMask.fault, 5, %d, Fault 26 27 FIELD magicRun.workdir, 5, %s, Label, none 28 FIELD magicMask.path_base, 5, %s, Label, none 27 29 28 30 TAIL PHP insert_image ('MAGIC.ORIGINAL.PNG', 'width=49%'); -
branches/czw_branch/20101203/ippMonitor/def/mopsStatus.d
r29483 r30586 1 TABLE rawExp LEFT JOIN chipRun using(exp_id) LEFT JOIN camRun using(chip_id) LEFT JOIN fakeRun using(cam_id) LEFT JOIN warpRun using(fake_id) LEFT JOIN diffInputSkyfile AS diffInput ON diffInput.warp1 = warp_id LEFT JOIN diffRun AS diffInputRun ON diffInput.diff_id = diffInputRun.diff_id LEFT JOIN diffInputSkyfile AS diffTemplate ON diffTemplate.warp2 = warp_id LEFT JOIN diffRun AS diffTemplateRun ON diffTemplate.diff_id = diffTemplateRun.diff_id LEFT JOIN publishRun ON stage_id=diffInput.diff_id 1 TABLE rawExp LEFT JOIN chipRun using(exp_id) LEFT JOIN camRun using(chip_id) LEFT JOIN fakeRun using(cam_id) LEFT JOIN warpRun using(fake_id) LEFT JOIN diffInputSkyfile AS diffInput ON diffInput.warp1 = warp_id LEFT JOIN diffRun AS diffInputRun ON diffInput.diff_id = diffInputRun.diff_id LEFT JOIN diffInputSkyfile AS diffTemplate ON diffTemplate.warp2 = warp_id LEFT JOIN diffRun AS diffTemplateRun ON diffTemplate.diff_id = diffTemplateRun.diff_id LEFT JOIN publishRun ON stage_id=diffInput.diff_id AND (client_id=1 OR client_id=5) LEFT JOIN publishRun AS pubRun2 ON pubRun2.stage_id=diffTemplate.diff_id AND (pubRun2.client_id=1 OR pubRun2.client_id=5) LEFT JOIN magicDSRun ON magicDSRun.magic_ds_id=camRun.magicked 2 2 TITLE MOPS Status 3 3 FILE mopsStatus.php … … 10 10 OP OP1 ($row[8]>$row[9]?$row[8]. "(1)":($row[9]!=0?$row[9]. "(2)":"0")) 11 11 # $diffInput.diff_id+$diffTemplate.diff_id 12 OP OP2 $row[8]+$row[9] 13 # "[".$diffInput.diff_id."]:[".$tdiff_id."]" 12 # PUB ID 13 OP OP2 ($row[12]>$row[13]?$row[12]. "(I)":($row[13]!=0?$row[13]. "(T)":"0")) 14 #($row[13]>$row[14]) 14 15 15 16 # field width format name show link to extras 16 FIELD dateobs, 1 5, %T, Date Obs17 FIELD dateobs, 13, %T, Date Obs 17 18 FIELD exp_name, 5, %s, Exp Name 18 19 FIELD rawExp.exp_id, 5, %d, Exp ID 19 20 FIELD chipRun.data_group, 5, %s, Data grp 20 21 FIELD chip_id, 5, %d, Chip ID (Stage 1) 21 FIELD cam _id, 5, %d, Cam ID (Stage 2)22 FIELD camRun.cam_id AS camID, 5, %d, Cam ID (Stage 2) 22 23 FIELD fake_id, 5, %d, Fake ID (Stage 3) 23 24 FIELD warp_id, 5, %d, Warp ID (Stage 4) … … 25 26 FIELD diffTemplate.diff_id AS tdiff_id, 5, %d, tdiff_id, none 26 27 FIELD *, 5, %s, Diff ID (Stage 5), op=OP1 27 #FIELD *, 5, %d, Diff ID (Stage 5), op=OP2 28 FIELD camRun.magicked, 5, %d, Cam Magicked (Stage 6) 29 FIELD publishRun.pub_id, 5, %d, Pub ID (Stage 7) 28 FIELD camRun.magicked, 5, %d, Magick ID (Stage 6) 29 FIELD magicDSRun.magic_ds_id, 5, %d, DestreakID (Stage 7) 30 FIELD publishRun.pub_id AS pubId1, 5, %d, pubId1, none 31 FIELD pubRun2.pub_id AS pubId2, 5, %d, pubId2, none 32 FIELD *, 10, %s, Pub ID, op=OP2 30 33 FIELD filter, 5, %s, Filter 31 34 FIELD object, 15, %s, Object 35 FIELD obs_mode, 5, %s, Obs Mode 32 36 FIELD comment, 40, %s, Comment 33 37 34 FIELD diffInput.diff_id AS ddiffId, 5, %s, ddiffId, none35 FIELD diffTemplate.diff_id AS tdiffId, 5, %s, tdiffId, none38 #FIELD diffInput.diff_id AS ddiffId, 5, %s, ddiffId, none 39 #FIELD diffTemplate.diff_id AS tdiffId, 5, %s, tdiffId, none 36 40 37 41 MODE summary -
branches/czw_branch/20101203/ippMonitor/raw/czartool_labels.php
r30118 r30586 64 64 include 'version.php'; 65 65 echo "</p>"; 66 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus<br>Use <a href=\"$link\"> $plotTypeLink</a> plots <br/><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\">Who uses the cluster?</a><br><a href=\"http://ipp004.ifa.hawaii.edu/ippMetrics\">IPP Metrics</a><br/><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\">Czar log pages</a></p>"; 67 66 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus<br>Use <a href=\"$link\"> $plotTypeLink</a> plots <br/><a href=\"http://ipp004.ifa.hawaii.edu/clusterMonitor/top.html\">Who uses the cluster?</a><br><a href=\"http://ipp004.ifa.hawaii.edu/ippMetrics\">IPP Metrics</a><br/><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\">Czar log pages</a><br><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\">Exposure summary</a></p>"; 68 67 69 68 // deal with reverts: turn on or off if requested and pass current revert state for this stage onto labels table later … … 182 181 echo "<td> \n"; 183 182 $today = date("Y-m-d"); 184 showSummitData($gpc1db, $today);183 createSummitDataTable($gpc1db, $today); 185 184 echo "</td>\n"; 186 185 echo "</tr>\n"; … … 189 188 echo "</tr>\n"; 190 189 191 192 190 # 4th row 191 echo "<tr>\n"; 192 echo "<td> \n"; 193 echo "<table>\n"; 194 echo "<tr valign=top>\n"; 195 echo "<td> \n"; 196 # storage plot 197 echo "<img src=\"czartool_getplot.php?type=s\"><br>"; 198 echo "</td>\n"; 199 echo "<td>\n"; 200 createDatesTable($czardb); 201 echo "</td>\n"; 202 echo "</tr>\n"; 203 echo "</table>\n"; 204 echo "</td> \n"; 205 echo "</tr>\n"; 206 207 # 5th row 193 208 echo "<tr>\n"; 194 209 echo "<td>\n"; … … 196 211 echo "<tr valign=top>\n"; 197 212 echo "<td> \n"; 198 # storage plot 199 echo "<img src=\"czartool_getplot.php?type=s\"><br>"; 213 if ($selectedServer && !$serverCmd) showServerStatus($selectedServer); 200 214 echo "</td>\n"; 201 215 echo "<td>\n"; … … 206 220 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1); 207 221 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS); 222 208 223 echo "</table>"; 209 224 echo "</td>\n"; … … 213 228 echo "</tr>\n"; 214 229 215 # 5th row216 echo "<tr>\n";217 echo "<td> \n";218 echo "<table>\n";219 echo "<tr valign=top>\n";220 echo "<td> \n";221 # server output222 if ($selectedServer && !$serverCmd) showServerStatus($selectedServer);223 echo "</td>\n";224 echo "<td>\n";225 echo "</td>\n";226 echo "</tr>\n";227 echo "</table>\n";228 echo "</td> \n";229 echo "</tr>\n";230 231 230 echo "</table>\n"; 232 231 … … 236 235 ########################################################################### 237 236 # 238 # C hecks summitExp table agains rawExp table239 # 240 ########################################################################### 241 function showSummitData($gpc1db, $date) {237 # Creates a table of summitExp against rawExp 238 # 239 ########################################################################### 240 function createSummitDataTable($gpc1db, $date) { 242 241 243 242 $sql = "SELECT DISTINCT exp_type FROM summitExp WHERE dateobs > '$date'"; … … 590 589 ########################################################################### 591 590 # 591 # Populates a tables with the current dates listed in the server_dates table 592 # 593 ########################################################################### 594 function createDatesTable($db) { 595 596 $class = "list"; 597 echo "<table class=$class>\n"; 598 echo "<tr><td></td>\n"; 599 write_header_cell($class, "Server"); 600 write_header_cell($class, "Dates"); 601 echo "</tr>\n"; 602 603 createServerDateRow($db, "stdscience"); 604 createServerDateRow($db, "registration"); 605 606 echo "</table>\n"; 607 } 608 609 610 ########################################################################### 611 # 612 # Checks the status of all the pantasks servers 613 # 614 ########################################################################### 615 function createServerDateRow($db, $server) { 616 617 $sql = "SELECT date FROM server_dates WHERE server LIKE '$server' ORDER BY date"; 618 if ($debug) {echo "$sql<br>";} 619 620 $qry = $db->query($sql); 621 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 622 $dates = ""; 623 $firstIn = true; 624 while ($qry->fetchInto($row)) { 625 626 if ($firstIn) { 627 628 $dates = $row[0]; 629 $firstIn = false; 630 } 631 else $dates = $dates . ", " . $row[0]; 632 } 633 634 $class = "list"; 635 echo "<tr><td></td>\n"; 636 write_table_cell($class, '%s', "", $server); 637 write_table_cell($class, '%s', "", $dates); 638 echo "</tr>\n"; 639 640 } 641 642 ########################################################################### 643 # 592 644 # Checks the status of all the pantasks servers 593 645 # … … 633 685 ."&plottype=".$plotType; 634 686 635 $link = ""; # TODO removed links temporarily636 write_table_cell($class, '%s', $link, $server);687 #$link = ""; # TODO removed links temporarily 688 write_table_cell($class, '%s', $link, $server); 637 689 write_table_cell($class, '%s', "", $alive ? "yes" : "NO"); 638 690 -
branches/czw_branch/20101203/ippMonitor/raw/ipp.load.dat
r28451 r30586 23 23 menulink | menuselect | link | New Imfile | newImfile.php 24 24 menulink | menuselect | link | Raw Imfile | rawImfile.php 25 menutop | menutop | plain | | 26 menulink | menuselect | link | Burntool State | rawBurntoolState.php -
branches/czw_branch/20101203/ippMonitor/raw/ipp.menu.dat
r28601 r30586 23 23 menutop | menutop | link | Stack Steps | ipp.stack.php 24 24 menutop | menutop | link | Distribution | ipp.dist.php 25 menutop | menutop | link | dvoDB | ipp.dvodb.php 25 26 menutop | menutop | link | Calibration | ipp.cal.php 26 27 menutop | menutop | link | Plots | ipp.plots.php -
branches/czw_branch/20101203/ippMonitor/raw/ipp.php
r28688 r30586 390 390 if ($sortKey == "") { 391 391 if ($_SERVER[REQUEST_METHOD] == 'GET') { 392 $sort Key= $_GET['rsort'];392 $sortVal = $_GET['rsort']; 393 393 } else { 394 $sort Key= $_POST['rsort'];394 $sortVal = $_POST['rsort']; 395 395 } 396 396 if ($sortVal != "") { … … 529 529 $value = $_POST[$htmlkey]; 530 530 } 531 # a search restriction may include an SQL wild-card. we have to mangle these so that the http 532 # does not get converted to a special character 533 $value = preg_replace ('|%|', '%25', $value); 531 534 if ($value != "") { 532 535 if ($line) { -
branches/czw_branch/20101203/ippMonitor/scripts/generate
r29485 r30586 58 58 if ($key eq "FIELD") { 59 59 ($field, $width, $format, $name, $show, $link, $extras) = split (/,\s+/, $value, 7); 60 if (! $name) { die "table $ARGV[0] missing required elements \n"; }60 if (! $name) { die "table $ARGV[0] missing required elements: $value\n"; } 61 61 if ($field =~ m|\S+\s+as\s+\S+|) { 62 62 ($fieldreal) = $field =~ m|\S+\s+as\s+(\S+)|;
Note:
See TracChangeset
for help on using the changeset viewer.
