Changeset 42272 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Sep 1, 2022, 2:04:44 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r42180 r42272 207 207 $ganglia = "http://ganglia.pan-starrs.ifa.hawaii.edu"; 208 208 $svnlink = "https://svn.pan-starrs.ifa.hawaii.edu/trac/ipp"; 209 $conflink = "https:// confluence.ipp.ifa.hawaii.edu";210 $jiralink = "https:// jira.ipp.ifa.hawaii.edu";209 $conflink = "https://panstarrs.atlassian.net"; 210 $jiralink = "https://panstarrs.atlassian.net"; 211 211 $hsttime1 = date("Y-m-d H:i:s", strtotime("$lastUpdateTime")); 212 212 $utctime1 = gmdate("Y-m-d H:i:s", strtotime("$lastUpdateTime")); … … 241 241  |  <a href=\"$ganglia/?m=mem_report&r=hour&s=by%2520name&c=IPP+Production&h=&sh=1&hc=8&z=small\" target=new> <font color=\"blue\">Memory_reports</font></a></td></tr>"; 242 242 echo "<tr><td>Documentations for IPP</td> 243 <td><a href=\"$conflink/ pages/viewrecentblogposts.action?key=IPPCZAR\" target=new><font color=\"blue\">Czarblog</font></a>244  |  <a href=\"$conflink/ display/IPPCZAR/IPP-Czaring+Home\" target=new><font color=\"blue\">Confluence</font></a>245  |  <a href=\"$jiralink/ projects/IPP/issues/filter=allissues\" target=new><font color=\"blue\">Jira</font></a>243 <td><a href=\"$conflink/wiki/spaces/IPPCZAR/pages/679903282/Czarblog+Roll\" target=new><font color=\"blue\">Czarblog</font></a> 244  |  <a href=\"$conflink/wiki/spaces/IPPCZAR/overview\" target=new><font color=\"blue\">Confluence</font></a> 245  |  <a href=\"$jiralink/issues/?filter=-4\" target=new><font color=\"blue\">Jira</font></a> 246 246  |  <a href=\"$svnlink/\" target=new><font color=\"blue\">trac</font></a></td></tr>"; 247 247 echo "<tr><td>Current nightly science status</td> … … 288 288 showReplicationsStatus($REPL_HOST_NEBULOUS_SECONDARY, $REPL_USER_NEBULOUS_SECONDARY, $REPL_PASSWORD_NEBULOUS_SECONDARY, $REPL_LABEL_NEBULOUS_SECONDARY); 289 289 showReplicationsStatus($REPL_HOST_NEBULOUS_TERTIARY, $REPL_USER_NEBULOUS_TERTIARY, $REPL_PASSWORD_NEBULOUS_TERTIARY, $REPL_LABEL_NEBULOUS_TERTIARY); 290 showReplicationsStatus($REPL_HOST_NEBULOUS_QUATERNARY, $REPL_USER_NEBULOUS_QUATERNARY, $REPL_PASSWORD_NEBULOUS_QUATERNARY, $REPL_LABEL_NEBULOUS_QUATERNARY); 290 291 // other dbs 291 292 showDatabaseStatus($HOST_PSTAMP, $USER_PSTAMP, $PASSWORD_PSTAMP, $LABEL_PSTAMP); … … 364 365 # gnuplots 365 366 # time series plot 366 #echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=t&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=linear\"><br><br>";367 #echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=t&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=log\"><br><br>";367 echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=t&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=linear\"><br><br>"; 368 echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=t&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=log\"><br><br>"; 368 369 # rate series plot 369 #echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=rt&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=linear\"><br><br>";370 echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=rt&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=linear\"><br><br>"; 370 371 #for dev version 371 372 # google chart … … 382 383 } 383 384 384 385 385 # data quality timeseries 386 386 echo getDataQuality($projectdb); 387 387 # storage timeseries 388 echo getSpaces($czardb);388 #echo getSpaces($czardb); 389 389 # storage plot 390 echo getHosts($czardb);390 #echo getHosts($czardb); 391 391 392 392 # timer for main page end … … 1727 1727 1728 1728 $sql = "select format(used/total*100,1), usable from cluster_space order by timestamp desc limit 1;"; 1729 1730 1729 if ($debug) {echo "$sql<br>";} 1731 1730 $qry = $db->query($sql); … … 1810 1809 } 1811 1810 1812 1813 1811 ########################################################################### 1814 1812 # … … 1823 1821 $start = $time; 1824 1822 1823 $date = gmdate("Y-m-d"); 1824 $sql = "SELECT MAX(exp_id) FROM rawExp WHERE dateobs >= date_sub('$date', interval 20 day) AND dateobs <= date_sub('$date', interval 10 day)"; 1825 $qry = $db->query($sql); 1826 if (dberror($qry)) { 1827 print "*** WARNING: no data in period 10-20 days before requested date (query will be slower) **\n"; 1828 $refExpID = 0; 1829 } 1830 $qry->fetchInto($refExpID); 1831 if ($refExpID[0] = 'NULL') { 1832 $refExpID[0] = 0; 1833 } 1834 1825 1835 #Query for the needed data 1826 1836 $DQarray = array(); … … 1829 1839 # $sql.= " WHERE (rawExp.dateobs > utc_date() - INTERVAL 14 hour) and (rawExp.dateobs < utc_date() + INTERVAL 10 hour)"; 1830 1840 $sql.= " WHERE (rawExp.dateobs > utc_date())"; 1841 $sql.= " AND exp_id > $refExpID[0]"; 1831 1842 $sql.= " AND exp_type = 'OBJECT' AND camRun.state like 'full' ORDER BY dateobs asc;"; 1832 1843 if ($debug) {echo "$sql<br>";} … … 2070 2081 echo " vAxis: { "; 2071 2082 echo " title: 'Zeropoint offset (mag)',"; 2072 echo " viewWindow: { min: -0. 5, max: 0.5 }, ";2083 echo " viewWindow: { min: -0.25, max: 0.25 }, "; 2073 2084 echo " },"; 2074 2085 echo " chartArea: {left:80, top:50, right:20, bottom:50},";
Note:
See TracChangeset
for help on using the changeset viewer.
