- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/raw/czartool_labels.php (modified) (12 diffs)
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-20110710/ippMonitor (added) merged: 32337 /branches/eam_branches/ipp-20110906/ippMonitor (added) merged: 32630 /branches/eam_branches/ipp-20111110/ippMonitor (added) merged: 32694
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippMonitor/raw/czartool_labels.php
r32101 r33415 27 27 menu($myMenu, 'Czartool on '.$lastUpdateTime, 'ipp.css', $ID['link'], $ID['proj']); 28 28 29 $states=array("full","new","drop","wait"); 30 $stages=array("burntool", "chip","cam","fake","warp","stack","diff","magic","magicDS","dist", "pub"); 29 $stages=array( 30 "burntool", 31 "chip", 32 "cam", 33 "fake", 34 "warp", 35 "stack", 36 "diff", 37 "magic", 38 "magicDS", 39 "dist", 40 "pub"); 41 31 42 $servers=array( 32 43 "addstar", … … 41 52 "replication", 42 53 "stack", 54 "deepstack", 43 55 "stdscience", 44 56 "summitcopy"); … … 149 161 echo "<br>"; 150 162 echo $table; 151 #"<table width=\"$width\" align=\"middle\" border=\"1\" cellspacing=\"0\" cellpadding=\"4\" style=\"font-size:80%\">\n"; 163 152 164 createTableTitle("Status and links", 3); 153 165 echo "<tr>\n"; … … 157 169 echo "<tr><td>Postage stamp server status</td><td><a href=\"http://pstamp.ipp.ifa.hawaii.edu/status.php\"><font color=\"blue\">here</font></a></td></tr>"; 158 170 echo "<tr><td>Documentation</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\"><font color=\"blue\">here</font></a></td></tr>"; 159 echo "<tr><td>Cluster load</td><td><a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&hc=6&c=IPP%2520Production\"><font color=\"blue\">here</font></a> </td></tr>";160 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ipp 004.ifa.hawaii.edu/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>";161 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp00 4.ifa.hawaii.edu/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>";171 echo "<tr><td>Cluster load</td><td><a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&hc=6&c=IPP%2520Production\"><font color=\"blue\">here</font></a> <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?m=cpu_report&r=hour&s=by%2520name&c=IPP+Production&h=&sh=1&hc=8&z=small\"><font color=\"blue\">cpu_report</font></a></td></tr>"; 172 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 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp0022.ifa.hawaii.edu/ps1sc/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 162 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>"; 163 175 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>"; … … 165 177 $plotTypeLink = ($plotType == "linear") ? "log" : "linear"; 166 178 $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&mode=" . $selectedMode . "&label=" . $selectedLabel . "&stage=" . $selectedStage . "&revertstage=" . $stage . "&plottype=$plotTypeLink"; 167 echo "<tr><td>Plot type</td><td><a href=\"$link\"><font color=\"blue\">Change to $plotTypeLink</font></a></td></tr>";168 179 169 180 … … 180 191 $pubLabels, 181 192 $stages, 182 $states,183 193 "new", 184 194 $selectedLabel, … … 201 211 echo "<tr>"; 202 212 createTableColumnHeader("Database"); 203 createTableColumnHeader("Status ");213 createTableColumnHeader("Status (sec behind master)"); 204 214 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1); 205 215 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS); … … 349 359 $pubLabels, 350 360 $stages, 351 $states,352 361 $selectedState, 353 362 $selectedLabel, $selectedStage, $plotType) { … … 483 492 createFormattedTableCell(($selectedLabel != "all"), $link, "All labels", 0, null); 484 493 485 createFormattedTableCell(0, null, "Revert s:", 0, "$columnHeaderColor");494 createFormattedTableCell(0, null, "Reverting?", 0, "$columnHeaderColor"); 486 495 487 496 foreach ($stages as &$stage) { … … 489 498 if ($stage == "burntool") continue; 490 499 $reverting = getRevertStatus($db, $stage); 491 $link = 492 "czartool_labels.php?pass=".$pass 493 ."&proj=".$proj 494 ."&mode=" .$selectedMode 495 ."&label=".$selectedLabel 496 ."&stage=".$selectedStage 497 ."&plottype=".$plotType 498 ."&revertstage=".$stage 499 ."&revertmode="; 500 501 if(!$reverting) {$label = "Start";$link = $link . "on";} 502 if($reverting) {$label = "Stop";$link = $link . "off";} 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";} 503 514 unset($reverting); 504 createFormattedTableCell(1, $link, $label, 0, "$columnHeaderColor"); 515 #createFormattedTableCell(1, $link, $label, 0, "$columnHeaderColor"); 516 createFormattedTableCell(0, null, $label, 0, "$columnHeaderColor"); 505 517 #echo "<td><a href=\"$link\"><font color=\"blue\">$label</font></td>"; 506 518 … … 904 916 //die("MySQL DB connection error: Check the configuration for $replDatabaseName"); 905 917 //die(""); 906 return ;918 return -1; 907 919 908 920 } … … 911 923 # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html 912 924 $errorStatusInMySql = $row[18]; 913 $replStatus = ($errorStatusInMySql==0?"OK":"<font color=\"red\">PROBLEM</font>"); 925 $sec_behind = $row[32]; 926 $replStatus = ($errorStatusInMySql==0?"OK ($sec_behind)":"<font color=\"red\">PROBLEM</font>"); 914 927 echo "<tr><td>$replDatabaseName</td><td>$replStatus</td></tr>"; 915 928 if ($errorStatusInMySql!=0) {
Note:
See TracChangeset
for help on using the changeset viewer.
