Changeset 29836
- Timestamp:
- Nov 26, 2010, 10:34:05 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101103/ippMonitor/raw
- Files:
-
- 2 edited
-
czartool_getplot.php (modified) (1 diff)
-
czartool_labels.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101103/ippMonitor/raw/czartool_getplot.php
r29260 r29836 17 17 $plottype = $_GET[plottype]; 18 18 19 if ($type=="t" )19 if ($type=="t" || $type=="r") 20 20 $filePath = "/tmp/czarplot_".$plottype."_".$label."_".$stage."_".$type.".png"; 21 21 else if ($type=="h") -
branches/eam_branches/ipp-20101103/ippMonitor/raw/czartool_labels.php
r29654 r29836 103 103 echo "</form>\n"; 104 104 105 echo "<table>\n"; 106 echo "<tr>\n"; 107 echo "<td>\n"; 108 echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>"; 109 echo "</td>\n"; 110 111 echo "<td> \n"; 112 createLabelsTable($pass, $proj, $czardb, "stdscience", $stdsLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType); 113 echo "</td>\n"; 114 echo "</tr>\n"; 115 116 echo "<tr>\n"; 117 echo "<td>\n"; 118 echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>"; 119 echo "</td>\n"; 120 121 echo "<td> \n"; 122 createLabelsTable($pass, $proj, $czardb, "update", $updateLabels, $distLabels, $pubLabels, $stages, $states, "new", $selectedLabel, $selectedStage, $plotType); 123 echo "</td>\n"; 124 echo "</tr>\n"; 125 126 echo "<tr>\n"; 127 echo "<table>\n"; 128 echo "<tr valign=top>\n"; 129 echo "<td> \n"; 130 echo "<img src=\"czartool_getplot.php?type=s\"><br>"; 131 echo "</td>\n"; 132 echo "<td>\n"; 133 createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage, $plotType); 134 echo "</td>\n"; 135 136 echo "<td> \n"; 137 $today = date("Y-m-d"); 138 showSummitData($gpc1db, $today); 139 echo "</td>\n"; 140 echo "</tr>\n"; 141 echo "</table>\n"; 142 143 echo "<table>\n"; 144 echo "<tr valign=top>\n"; 145 echo "<td> \n"; 146 echo "</td>\n"; 147 echo "<td>\n"; 148 if ($selectedServer && !$serverCmd) showServerStatus($selectedServer); 149 echo "</td>\n"; 150 echo "</tr>\n"; 151 echo "</table>\n"; 152 echo "</tr>\n"; 153 154 echo "<tr>\n"; 155 echo "<td>\n"; 156 echo "</td>\n"; 157 echo "<td>\n"; 158 # This is awful 159 echo "<table border=\"1\"><tr><td colspan=\"2\"><b>Databases Replication Status</b></td></tr>"; 160 echo "<tr><td>Database</td><td>Replication Status</td></tr>"; 161 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1); 162 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS); 163 echo "</table>"; 164 echo "</td>\n"; 165 echo "</tr>\n"; 166 167 echo "</table>\n"; 105 echo "<table>\n"; 106 107 108 # 1st row 109 echo "<tr>\n"; 110 echo "<td> \n"; 111 echo "<table>\n"; 112 echo "<tr valign=center>\n"; 113 echo "<td> \n"; 114 # timeseries plot 115 echo "<img src=\"czartool_getplot.php?type=t&label=$selectedLabel&stage=$selectedStage&plottype=$plotType\"><br>"; 116 echo "</td>\n"; 117 echo "<td>\n"; 118 createLabelsTable($pass, 119 $proj, 120 $czardb, 121 "stdscience", 122 $stdsLabels, 123 $distLabels, 124 $pubLabels, 125 $stages, 126 $states, 127 "new", 128 $selectedLabel, 129 $selectedStage, 130 $plotType); 131 echo "</td>\n"; 132 echo "</tr>\n"; 133 echo "</table>\n"; 134 echo "</td> \n"; 135 echo "</tr>\n"; 136 137 138 139 # 2nd row 140 echo "<tr>\n"; 141 echo "<td> \n"; 142 echo "<table>\n"; 143 echo "<tr valign=center>\n"; 144 echo "<td> \n"; 145 # rate plot 146 echo "<img src=\"czartool_getplot.php?type=r&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>"; 147 echo "</td>\n"; 148 echo "<td>\n"; 149 createLabelsTable($pass, 150 $proj, 151 $czardb, 152 "update", 153 $updateLabels, 154 $distLabels, 155 $pubLabels, 156 $stages, 157 $states, 158 "new", 159 $selectedLabel, 160 $selectedStage, 161 $plotType); 162 echo "</td>\n"; 163 echo "</tr>\n"; 164 echo "</table>\n"; 165 echo "</td> \n"; 166 echo "</tr>\n"; 167 168 169 # 3rd row 170 echo "<tr>\n"; 171 echo "<td> \n"; 172 echo "<table>\n"; 173 echo "<tr valign=top>\n"; 174 echo "<td> \n"; 175 # histogram plot 176 echo "<img src=\"czartool_getplot.php?type=h&label=$selectedLabel&stage=$selectedStage&plottype=linear\"><br>"; 177 echo "</td>\n"; 178 echo "<td>\n"; 179 createServersTable($pass, $proj,$czardb, $servers, $selectedLabel, $selectedStage, $plotType); 180 echo "</td>\n"; 181 182 echo "<td> \n"; 183 $today = date("Y-m-d"); 184 showSummitData($gpc1db, $today); 185 echo "</td>\n"; 186 echo "</tr>\n"; 187 echo "</table>\n"; 188 echo "</td> \n"; 189 echo "</tr>\n"; 190 191 192 # 4th row 193 echo "<tr>\n"; 194 echo "<td>\n"; 195 echo "<table>\n"; 196 echo "<tr valign=top>\n"; 197 echo "<td> \n"; 198 # storage plot 199 echo "<img src=\"czartool_getplot.php?type=s\"><br>"; 200 echo "</td>\n"; 201 echo "<td>\n"; 202 # This is awful 203 echo "<table border=\"1\"><tr><td colspan=\"2\"><b>Databases Replication Status</b></td></tr>"; 204 echo "<tr><td colspan=\"2\">Update fix log <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Replication_Issues\">here</a></td></tr>"; 205 echo "<tr><td>Database</td><td>Replication Status</td></tr>"; 206 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1); 207 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS); 208 echo "</table>"; 209 echo "</td>\n"; 210 echo "</tr>\n"; 211 echo "</table>\n"; 212 echo "</td> \n"; 213 echo "</tr>\n"; 214 215 # 5th row 216 echo "<tr>\n"; 217 echo "<td> \n"; 218 echo "<table>\n"; 219 echo "<tr valign=top>\n"; 220 echo "<td> \n"; 221 # server output 222 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 echo "</table>\n"; 168 232 169 233 menu_end(); … … 209 273 210 274 if ($expType[0] == "OBJECT") { 211 if ($summit[0] == $mhpcc[0]) $msg = "All science exposures taken since $date<br>have been registered at MHPCC"; 212 else $msg = "Warning: Not all science exposures taken since $date<br>have been registered at MHPCC"; 275 if ($summit[0] == $mhpcc[0]) { 276 $msg = "All science exposures taken since $date<br>have been registered at MHPCC"; 277 } 278 else { 279 $msg = "<font color=\"orange\">Warning: Not all science exposures taken since $date<br>have been registered at MHPCC</a>"; 280 } 213 281 } 214 282
Note:
See TracChangeset
for help on using the changeset viewer.
