Changeset 42360
- Timestamp:
- Feb 4, 2023, 7:34:46 AM (3 years ago)
- Location:
- branches/eam_branches/ipp-20220316/ippMonitor
- Files:
-
- 2 deleted
- 6 edited
- 3 copied
-
. (modified) (1 prop)
-
Makefile.in (modified) (1 diff)
-
def/autocodeImage.php (modified) (1 diff)
-
raw/czartool_labels.php (modified) (21 diffs)
-
raw/czartool_labels_last.php (deleted)
-
raw/czartool_labels_old.php (deleted)
-
raw/ganglia.php (copied) (copied from trunk/ippMonitor/raw/ganglia.php )
-
raw/ipp.czar.dat (modified) (1 diff)
-
raw/ipp.plots.dat (modified) (1 diff)
-
raw/skycoverage.php (copied) (copied from trunk/ippMonitor/raw/skycoverage.php )
-
raw/storage.php (copied) (copied from trunk/ippMonitor/raw/storage.php )
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/ippMonitor
- Property svn:mergeinfo changed
/trunk/ippMonitor (added) merged: 42180,42272-42276,42285
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20220316/ippMonitor/Makefile.in
r42199 r42360 86 86 $(DESTWWW)/show_log.php \ 87 87 $(DESTWWW)/heathers_plot.php \ 88 $(DESTWWW)/storage.php \ 89 $(DESTWWW)/skycoverage.php \ 90 $(DESTWWW)/ganglia.php \ 88 91 $(DESTWWW)/loader.js 89 92 -
branches/eam_branches/ipp-20220316/ippMonitor/def/autocodeImage.php
r39498 r42360 115 115 foreach ($row as $i => $value) { 116 116 switch ($value) { 117 case 'g.00002': 118 $filter = 1; 119 break; 120 case 'r.00002': 121 $filter = 2; 122 break; 123 case 'i.00002': 124 $filter = 3; 125 break; 126 case 'z.00002': 127 $filter = 4; 128 break; 129 case 'y.00002': 130 $filter = 5; 131 break; 132 case 'w.00002': 133 $filter = 6; 134 break; 117 135 case 'g.00000': 118 136 $filter = 1; -
branches/eam_branches/ipp-20220316/ippMonitor/raw/czartool_labels.php
r42040 r42360 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"; 211 210 $hsttime1 = date("Y-m-d H:i:s", strtotime("$lastUpdateTime")); 212 211 $utctime1 = gmdate("Y-m-d H:i:s", strtotime("$lastUpdateTime")); … … 218 217 <td> PHP: v.$phpversion 219 218  |  <a href=\"$svnlink/browser/trunk/ippMonitor\" target=new><font color=\"blue\">SVN: v.$svnversion</font></a> 220  |  <a href=\"$jiralink/browse/IPP-86\" target=new><font color=\"blue\">Jira</font></a> 221  |  <a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/czartool_labels.php?pass=$pass&proj=$proj\"><font color=\"blue\">online</font></a>, 222   <a href=\"http://ipp117.ipp.ifa.hawaii.edu/ippMonitor/czartool_labels.php?pass=$pass&proj=$proj\"><font color=\"blue\">dev</font></a>, 223   <a href=\"czartool_labels_last.php?pass=$pass&proj=$proj\"><font color=\"blue\">last</font></a> 219 220  |  <a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/czartool_labels.php?pass=$pass&proj=$proj\"><font color=\"blue\">online (ipp113) </font></a>, 221   <a href=\"http://ipp117.ipp.ifa.hawaii.edu/ippMonitor/czartool_labels.php?pass=$pass&proj=$proj\"><font color=\"blue\">dev (ipp117) </font></a> 224 222 version </td></tr>"; 225 223 echo "<tr><td>Pan-STARRS Data Store</td> … … 239 237 <td><a href=\"$ganglia/?r=hour&s=descending&hc=6&c=IPP%2520Production\" target=new> <font color=\"blue\">Load_reports</font></a> 240 238  |  <a href=\"$ganglia/?m=cpu_report&r=hour&s=by%2520name&c=IPP+Production&h=&sh=1&hc=8&z=small\" target=new> <font color=\"blue\">CPU_reports</font></a> 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>"; 239  |  <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> 240 </td></tr>"; 242 241 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> 246  |  <a href=\"$svnlink/\" target=new><font color=\"blue\">trac</font></a></td></tr>"; 242 <td><a href=\"$conflink/wiki/spaces/IPPCZAR/pages/679903282/Czarblog+Roll\" target=new><font color=\"blue\">Czarblog</font></a> 243  |  <a href=\"$conflink/wiki/spaces/IPPCZAR/pages/678634250/Czar+Guidelines\" target=new><font color=\"blue\">Czar guidelines</font></a> 244  |  <a href=\"$conflink/browse/IPP-86\" target=new><font color=\"blue\">ippMonitor Jira</font></a> 245  |  <a href=\"$conflink/wiki/spaces/IKB/pages/678298859/IPP+Hardware+Status\" target=new><font color=\"blue\">Hardware</font></a> 246  |  <a href=\"$svnlink/\" target=new><font color=\"blue\">trac</font></a> 247 </td></tr>"; 247 248 echo "<tr><td>Current nightly science status</td> 248 249 <td>".getNightlyScienceStatus($czardb, $proj)."</td></tr>"; … … 285 286 // nebulous dbs 286 287 showDatabaseStatus($HOST_NEBULOUS, $USER_NEBULOUS, $PASSWORD_NEBULOUS, $LABEL_NEBULOUS); 287 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_LABEL_NEBULOUS);288 //showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_LABEL_NEBULOUS); 288 289 showReplicationsStatus($REPL_HOST_NEBULOUS_SECONDARY, $REPL_USER_NEBULOUS_SECONDARY, $REPL_PASSWORD_NEBULOUS_SECONDARY, $REPL_LABEL_NEBULOUS_SECONDARY); 289 290 showReplicationsStatus($REPL_HOST_NEBULOUS_TERTIARY, $REPL_USER_NEBULOUS_TERTIARY, $REPL_PASSWORD_NEBULOUS_TERTIARY, $REPL_LABEL_NEBULOUS_TERTIARY); 291 showReplicationsStatus($REPL_HOST_NEBULOUS_QUATERNARY, $REPL_USER_NEBULOUS_QUATERNARY, $REPL_PASSWORD_NEBULOUS_QUATERNARY, $REPL_LABEL_NEBULOUS_QUATERNARY); 290 292 // other dbs 291 293 showDatabaseStatus($HOST_PSTAMP, $USER_PSTAMP, $PASSWORD_PSTAMP, $LABEL_PSTAMP); … … 368 370 # rate series plot 369 371 echo "<img src=\"czartool_getplot.php?mode=$selectedMode&type=rt&label=$selectedLabel&proj=$proj&stage=$selectedStage&plottype=linear\"><br><br>"; 372 #for dev version 373 # google chart 374 # time series plot 375 #echo Gettimeseries($czardb, $selectedMode, $selectedLabel, $proj, $selectedStage); 376 # rate series plot 377 #echo Getrate($czardb, $selectedMode, $selectedLabel, $proj, $selectedStage); 370 378 } else { 371 379 # google chart … … 1607 1615 echo " <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: #bbbbbb\"><center>Down | Repair</div>"; 1608 1616 echo " <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: #ffffff\"><center>Power Off</div>"; 1609 echo " <div style=\"font-size: 12px; height: 14px; border: 1px solid; background-color: #ffffff\"><center>1610 <a href=\"https://confluence.ipp.ifa.hawaii.edu/display/IKB/IPP+Hardware+Status#IPPHardwareStatus-StorageNodes\" target=new><font color=\"blue\">Notes</font></a></div>";1611 1617 echo " </div>"; 1612 1618 echo "</div>"; … … 1621 1627 echo " 'free', {type: 'string', role: 'style'}, {type: 'string', role: 'tooltip', 'p': {'html': true}}],"; 1622 1628 1623 $sql = "SELECT host, format(total,1), format(available,2), format(used,2), writable, readable, format(used/total*100,2) FROM hosts ";1629 $sql = "SELECT host, format(total,1), format(available,2), format(used,2), writable, readable, format(used/total*100,2) FROM hosts order by host"; 1624 1630 if ($debug) {echo "$sql<br>";} 1625 1631 $qry = $db->query($sql); … … 1802 1808 } 1803 1809 1804 1805 1810 ########################################################################### 1806 1811 # … … 1815 1820 $start = $time; 1816 1821 1822 $date = gmdate("Y-m-d"); 1823 $sql = "SELECT MAX(exp_id) FROM rawExp WHERE dateobs >= date_sub('$date', interval 20 day) AND dateobs <= date_sub('$date', interval 10 day)"; 1824 $qry = $db->query($sql); 1825 if (dberror($qry)) { 1826 print "*** WARNING: no data in period 10-20 days before requested date (query will be slower) **\n"; 1827 $refExpID = 0; 1828 } 1829 $qry->fetchInto($refExpID); 1830 if ($refExpID[0] = 'NULL') { 1831 $refExpID[0] = 0; 1832 } 1833 1817 1834 #Query for the needed data 1818 1835 $DQarray = array(); … … 1821 1838 # $sql.= " WHERE (rawExp.dateobs > utc_date() - INTERVAL 14 hour) and (rawExp.dateobs < utc_date() + INTERVAL 10 hour)"; 1822 1839 $sql.= " WHERE (rawExp.dateobs > utc_date())"; 1840 $sql.= " AND exp_id > $refExpID[0]"; 1823 1841 $sql.= " AND exp_type = 'OBJECT' AND camRun.state like 'full' ORDER BY dateobs asc;"; 1824 1842 if ($debug) {echo "$sql<br>";} … … 1830 1848 1831 1849 #also find the median zeropoint 1832 foreach($DQarray as $row) {1833 $zpt[] = $row[3];1834 }1835 1836 sort($zpt);1837 $count = sizeof($zpt); // cache the count1838 $index = floor($count/2); // cache the index1839 $zpt_med = $zpt[$index];1850 # foreach($DQarray as $row) { 1851 # $zpt[] = $row[3]; 1852 # } 1853 1854 # sort($zpt); 1855 # $count = sizeof($zpt); // cache the count 1856 # $index = floor($count/2); // cache the index 1857 # $zpt_med = $zpt[$index]; 1840 1858 1841 1859 #echo "<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>"; … … 1927 1945 echo " data.addColumn('datetime', 'Time');"; 1928 1946 echo " data.addColumn('number', 'zeropoint');"; 1947 echo " data.addColumn({'type': 'string', 'role': 'style'});"; 1929 1948 echo " data.addColumn({'type': 'string', 'role': 'tooltip', 'p': {'html': true}});"; 1930 1949 echo " data.addColumn({id:'i0', type:'number', role:'interval'});"; 1950 echo " data.addColumn({id:'i0','type': 'string', 'role': 'style'});"; 1931 1951 echo " data.addColumn({id:'i0', type:'number', role:'interval'});"; 1952 echo " data.addColumn({id:'i0','type': 'string', 'role': 'style'});"; 1932 1953 echo " data.addRows(["; 1933 1954 foreach($DQarray as $row) { … … 1940 1961 $zp_low = $zp-$zp_stdev; 1941 1962 $zp_high = $zp+$zp_stdev; 1963 $col_string = '#0000ff'; 1964 $zpt_off = 0.; 1942 1965 1943 1966 $tt_string1 = sprintf('time: %s\n zeropoint: %s\n filter: %s\n exp_time: %s\n comment: %s', $timestamp, $zp,$row[5],$row[6],$row[7]); 1944 1967 # new Date(Year, Month, Day, Hours, Minutes, Seconds, Milliseconds) 1945 echo "[new Date($dat[0], $dat[1]-1, $dat[2], $tm[0], $tm[1]), $zp,'$ tt_string1', $zp_low, $zp_high],";1968 echo "[new Date($dat[0], $dat[1]-1, $dat[2], $tm[0], $tm[1]), $zp,'$col_string','$tt_string1', $zp_low,'$col_string', $zp_high,'$col_string'],"; 1946 1969 } 1947 1970 … … 1958 1981 echo " alignment: 'center',"; 1959 1982 echo " },"; 1960 echo " lineWidth: 2, ";1961 1983 echo " series: {"; 1962 echo " 0: { color: '#0000ff' , lineWidth: 3}, ";1984 echo " 0: { color: '#0000ff'}, "; 1963 1985 echo " },"; 1964 echo " intervals: { 'style':'line'}, ";1986 echo " intervals: { color: 'grey','style':'points', pointSize: 1 }, "; 1965 1987 echo " hAxis: { "; 1966 1988 echo " title: 'Date/Time (HST)',"; … … 1974 1996 echo " fontSize: 12,"; 1975 1997 echo " };"; 1976 echo " var chart = new google.visualization. LineChart(document.getElementById('dqzp_div'));";1998 echo " var chart = new google.visualization.ScatterChart(document.getElementById('dqzp_div'));"; 1977 1999 echo " chart.draw(data, options);"; 1978 2000 echo " }"; … … 1997 2019 echo " data.addColumn('datetime', 'Time');"; 1998 2020 echo " data.addColumn('number', 'zeropoint');"; 2021 echo " data.addColumn({'type': 'string', 'role': 'style'});"; 1999 2022 echo " data.addColumn({'type': 'string', 'role': 'tooltip', 'p': {'html': true}});"; 2000 2023 echo " data.addColumn({id:'i0', type:'number', role:'interval'});"; 2001 echo " data.addColumn({id:'i 0', type:'number', role:'interval'});";2024 echo " data.addColumn({id:'i1', type:'number', role:'interval'});"; 2002 2025 echo " data.addRows(["; 2003 2026 foreach($DQarray as $row) { … … 2008 2031 $zp = $row[3]; 2009 2032 $zp_stdev = $row[4]; 2010 $zp_low = $zp-$zp_stdev; 2011 $zp_high = $zp+$zp_stdev; 2033 $zp_low = $zp_stdev; 2034 $zp_high = $zp_stdev; 2035 $col_string = '#0000ff'; 2036 $zpt_off = 0.; 2037 2038 #if(substr($row[5],0,1) == 'g') {$col_string = 'blue'; $zpt_off = $zp - 24.563;} 2039 #if(substr($row[5],0,1) == 'r') {$col_string = 'red'; $zpt_off = $zp - 24.740;} 2040 #if(substr($row[5],0,1) == 'i') {$col_string = '#6a3d9a'; $zpt_off = $zp - 24.611;} 2041 #if(substr($row[5],0,1) == 'z') {$col_string = 'green'; $zpt_off = $zp - 24.250;} 2042 #if(substr($row[5],0,1) == 'y') {$col_string = 'cyan'; $zpt_off = $zp - 23.320;} 2043 #if(substr($row[5],0,1) == 'w') {$col_string = 'grey'; $zpt_off = $zp - 26.300;} 2044 2045 #define new zeropoints 2046 if(substr($row[5],0,1) == 'g') {$col_string = 'blue'; $zpt_off = $zp - 25.013;} 2047 if(substr($row[5],0,1) == 'r') {$col_string = 'red'; $zpt_off = $zp - 24.840;} 2048 if(substr($row[5],0,1) == 'i') {$col_string = '#6a3d9a'; $zpt_off = $zp - 24.711;} 2049 if(substr($row[5],0,1) == 'z') {$col_string = 'green'; $zpt_off = $zp - 24.30;} 2050 if(substr($row[5],0,1) == 'y') {$col_string = 'cyan'; $zpt_off = $zp - 23.57;} 2051 if(substr($row[5],0,1) == 'w') {$col_string = 'grey'; $zpt_off = $zp - 26.000;} 2012 2052 2013 2053 $tt_string1 = sprintf('time: %s\n zeropoint: %s\n filter: %s\n exp_time: %s\n comment: %s', $timestamp, $zp,$row[5],$row[6],$row[7]); 2014 2054 # new Date(Year, Month, Day, Hours, Minutes, Seconds, Milliseconds) 2015 echo "[new Date($dat[0], $dat[1]-1, $dat[2], $tm[0], $tm[1]), $zp ,'$tt_string1', $zp_low, $zp_high],";2055 echo "[new Date($dat[0], $dat[1]-1, $dat[2], $tm[0], $tm[1]), $zpt_off,'$col_string','$tt_string1', $zp_low, $zp_high],"; 2016 2056 } 2017 2057 … … 2028 2068 echo " alignment: 'center',"; 2029 2069 echo " },"; 2030 echo " lineWidth: 2, ";2070 echo " pointSize: 3, "; 2031 2071 echo " series: {"; 2032 echo " 0: { color: '#0000ff' , lineWidth: 3}, ";2072 echo " 0: { color: '#0000ff'}, "; 2033 2073 echo " },"; 2034 echo " intervals: { 'style':'line'}, ";2074 echo " intervals: { color: 'grey','style':'points', pointSize: 1 }, "; 2035 2075 echo " hAxis: { "; 2036 2076 echo " title: 'Date/Time (HST)',"; … … 2039 2079 echo " },"; 2040 2080 echo " vAxis: { "; 2041 echo " title: 'Zeropoint (mag)',";2042 echo " viewWindow: { min: $zpt_med-0.2, max: $zpt_med+0.2}, ";2081 echo " title: 'Zeropoint offset (mag)',"; 2082 echo " viewWindow: { min: -0.25, max: 0.25 }, "; 2043 2083 echo " },"; 2044 2084 echo " chartArea: {left:80, top:50, right:20, bottom:50},"; 2045 2085 echo " fontSize: 12,"; 2046 2086 echo " };"; 2047 echo " var chart = new google.visualization. LineChart(document.getElementById('dqzp_zoom_div'));";2087 echo " var chart = new google.visualization.ScatterChart(document.getElementById('dqzp_zoom_div'));"; 2048 2088 echo " chart.draw(data, options);"; 2049 2089 echo " }"; … … 2060 2100 echo "<center>loading plot in $total_time seconds<br></center>"; 2061 2101 } 2062 2063 2102 2064 2103 ########################################################################### … … 2968 3007 2969 3008 ?> 2970 -
branches/eam_branches/ipp-20220316/ippMonitor/raw/ipp.czar.dat
r40840 r42360 1 input | ipp.menu.dat1 input | ipp.menu.dat 2 2 3 menutop | menutop | plain | |3 menutop | menutop | plain | | 4 4 5 menulink | menuselect | link | czartool | czartool_labels.php 6 menulink | menuselect | link | mask stats | maskStats.php 7 menulink | menuselect | link | night summary | nightSummary.php 8 menutop | menutop | plain | | 9 menulink | menuselect | link | Exposures Status | exposureStatus.php 10 menulink | menuselect | link | MOPS Exposures Status | mopsStatus.php 11 menulink | menuselect | link | MySql ProcessList | gpc1MysqlProcessList.php 5 menulink | menuselect | link | czartool | czartool_labels.php 6 menulink | menuselect | link | storage status | storage.php 7 menulink | menuselect | link | mask stats | maskStats.php 8 menulink | menuselect | link | night summary | nightSummary.php 9 menulink | menuselect | link | skycoverage | skycoverage.php 10 menulink | menuselect | link | ganglia | ganglia.php 12 11 12 menutop | menutop | plain | | 13 14 menulink | menuselect | link | Exposures Status | exposureStatus.php 15 menulink | menuselect | link | MOPS Exposures Status | mopsStatus.php 16 menulink | menuselect | link | MySql ProcessList | gpc1MysqlProcessList.php 17 -
branches/eam_branches/ipp-20220316/ippMonitor/raw/ipp.plots.dat
r41202 r42360 11 11 menulink | menuselect | link | Simple plot - diff | simplePlotDiffImage.php 12 12 menulink | menuselect | link | Subset plot - diff | subsetPlotDiffImage.php 13 menulink | menuselect | link | Heather's Plots | heathers_plot.php14 13 15 14 menutop | menutop | plain | |
Note:
See TracChangeset
for help on using the changeset viewer.
