Changeset 28610
- Timestamp:
- Jul 5, 2010, 10:34:45 AM (16 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 1 added
- 3 edited
-
Makefile.in (modified) (1 diff)
-
raw/czartool_labels.php (modified) (10 diffs)
-
raw/ipp.czartool.dat (modified) (1 diff)
-
scripts/czartool_revert.pl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/Makefile.in
r28608 r28610 17 17 $(DESTBIN)/czartool_checkServer.pl \ 18 18 $(DESTBIN)/czartool_getServerStatus.pl \ 19 $(DESTBIN)/czartool_revert.pl \ 19 20 $(DESTBIN)/build_histogram.dvo \ 20 21 $(DESTBIN)/helpers.dvo \ -
trunk/ippMonitor/raw/czartool_labels.php
r28447 r28610 9 9 10 10 $db = dbconnect($ID['proj']); 11 $PATH = getenv("PATH"); 12 putenv("PATH=$BINDIR:$PATH"); 13 14 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); 15 putenv("LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH"); 16 11 17 12 18 if ($ID['menu']) {$myMenu = $ID['menu'];} … … 20 26 21 27 $userSelection = $_GET[selection]; 22 23 28 if ($userSelection == "") {$userSelection = $_POST['state'];} 24 29 if ($userSelection == "") {$userSelection = "new";} 25 30 31 // anything to revert? 32 $revertServer = $_GET[server]; 33 $revertStage = $_GET[stage]; 34 $revertMode = $_GET[revert]; 35 36 if ($revertStage != "" && $revertMode != "" && $revertServer != "" ) 37 exec("czartool_revert.pl -s $revertServer -t $revertStage -o $revertMode", $revertOnOff, $status); 38 26 39 $debug = 0; 27 28 $PATH = getenv("PATH");29 putenv("PATH=$BINDIR:$PATH");30 31 $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH");32 putenv("LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH");33 40 34 41 exec("czartool_getLabels.pl -s stdscience", $stdsLabels, $status); … … 43 50 44 51 $states=array("full","new","drop","wait"); 45 $stages=array("chip","cam ","fake","warp","stack","diff","magic","destreak","dist");52 $stages=array("chip","camera","fake","warp","stack","diff","magic","destreak","dist"); 46 53 47 54 // set up the form … … 110 117 getStateAndFaults($db, $label,"warpRun", $state, "warp", $str, $anyFaults); 111 118 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 112 119 113 120 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $label . "&stackRun.state=new"; 114 121 getStateAndFaults($db, $label,"stackRun", $state, "stack", $str, $anyFaults); … … 126 133 getStateAndFaults($db, $label,"magicDSRun", $state, "magicDS", $str, $anyFaults); 127 134 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 128 135 129 136 $link = $defaultlink; 130 137 getStateAndFaults($db, $label,"distRun", $state, "dist", $str, $anyFaults); … … 151 158 // set up table columns 152 159 $class = "list"; 153 //echo "<table class=$class BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"5\">\n";154 160 echo "<table class=$class >\n"; 161 echo "<tr><td></td>\n"; 162 163 write_header_cell($class, ""); 164 write_header_cell($class, ""); 165 foreach ($stages as &$stage) { 166 167 $revertOnOff=array(); 168 if ($stage == "destreak" or $stage == "dist") $server = "distribution"; 169 else $server = "stdscience"; 170 exec("czartool_revert.pl -s $server -t $stage", $revertOnOff, $status); 171 $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&server=" . $server . "&stage=" . $stage . "&revert="; 172 if($revertOnOff[0] == "off") {$label = "Start reverts";$link = $link . "on";} 173 if($revertOnOff[0] == "on") {$label = "Stop reverts";$link = $link . "off";} 174 unset($revertOnOff); 175 write_table_cell($class, '%s', $link, $label); 176 } 177 178 echo "</tr>\n"; 155 179 echo "<tr><td></td>\n"; 156 180 write_header_cell($class, "label"); 157 181 write_header_cell($class, "distributing?"); 158 // echo "<td class=\"$class\"><a href=\"$link\"> $myValue </a></td>\n"; 159 // echo "<th class=\"$class\"><a href=\"czartool.php\">label</th>\n"; 160 161 foreach ($stages as &$stage) {write_header_cell($class, $stage);} 162 //foreach ($stages as &$stage) { 163 164 // $link = "czartool.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $stage; 165 // echo "<th class=\"$class\"><a href=\"$link\">$stage</th>\n"; 166 // } 182 foreach ($stages as &$stage) write_header_cell($class, $stage); 167 183 168 184 echo "</tr>\n"; 185 echo "<tr><td></td>\n"; 169 186 170 187 // write rows … … 176 193 if ($stdsLabel == $distLabel) { $distributing = true; break;} 177 194 } 178 179 195 180 196 // create link to label summary page for each label … … 204 220 getStateAndFaults($db, $stdsLabel,"warpRun", $selectedState, "warp", $str, $anyFaults); 205 221 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 206 222 207 223 $link = "stackFailedSkyfile.php?pass=" . $pass . "&proj=" . $proj . "&stackRun.label=" . $stdsLabel . "&stackRun.state=new"; 208 224 getStateAndFaults($db, $stdsLabel,"stackRun", $selectedState, "stack", $str, $anyFaults); … … 220 236 getStateAndFaults($db, $stdsLabel,"magicDSRun", $selectedState, "magicDS", $str, $anyFaults); 221 237 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 222 238 223 239 $link = $defaultlink; 224 240 getStateAndFaults($db, $stdsLabel,"distRun", $selectedState, "dist", $str, $anyFaults); … … 228 244 } 229 245 246 echo "</tr>\n"; 230 247 echo "</table>\n"; 231 248 232 249 echo "<p> - Click on a label to see all states for that label (full, new, drop etc)<br>"; 233 250 echo "- Click on a fault to find logfile </p>"; 251 echo "- Click on column header to turn reverts on or off </p>"; 234 252 } 235 253 -
trunk/ippMonitor/raw/ipp.czartool.dat
r28496 r28610 2 2 3 3 menutop | menutop | plain | | 4 menulink | menuselect | link | Processing status | czartool_labels.php 4 5 menulink | menuselect | link | Last night's data | czartool_summit.php 5 menulink | menuselect | link | Check labels | czartool_labels.php 6 menulink | menuselect | link | Check servers | czartool_servers.php 6 menulink | menuselect | link | Pantasks servers | czartool_servers.php
Note:
See TracChangeset
for help on using the changeset viewer.
