Changeset 41126
- Timestamp:
- Nov 18, 2019, 8:49:27 PM (7 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 3 added
- 7 edited
-
INSTALL (modified) (2 diffs)
-
Makefile.in (modified) (4 diffs)
-
configure.tcsh (modified) (3 diffs)
-
czartool/czarpoll.pl (modified) (1 diff)
-
def/fullforceInputSkyfile.d (added)
-
def/fullforce_failure.d (modified) (1 diff)
-
raw/ipp.ffs.dat (added)
-
raw/ipp.ffs.php (added)
-
raw/ipp.php (modified) (1 diff)
-
raw/site.php.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/INSTALL
r40435 r41126 1 #!/bin/sh 1 2 2 3 # below are commands to configure ippMonitor … … 11 12 # testing of those parts of ippMonitor which depend on IPP code without modifyin 12 13 # the operational installation 14 # 2019.11.18 CCL: which parts of ippMonitor depends on IPP codes? If there is not many 15 # , just use trunk version should work fine. 13 16 psconfig ipp-trunk-20180515 14 17 15 # run psconfigure to generate Makefile and raw/site.php 18 # run psconfigure to generate Makefile and raw/site.php (site.php.in includes CZARPLOTDIR now) 16 19 psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 20 21 # copy these files and modify them 22 cp config.dat.in config.dat 23 24 # for czarpool.pl, the path needs to be defined. 25 cp czartool/czarconfig.xml.in czartool/czarconfig.xml 26 # then set gnuplot path <path>/export/ipp113.0/ipp/czartool_plots</path> --> for ipp113 27 # ipp117 is set to be rsynced in crontab regularly from ipp113's path, 28 # so need to remove crontab if czarpool.pl is under development 29 # then set gnuplot path <path>/export/ipp117.0/ipp/czartool_plots</path> --> for ipp117 17 30 18 31 # install the php code: 19 32 make 33 34 -
trunk/ippMonitor/Makefile.in
r40844 r41126 3 3 @echo "USAGE: make php" 4 4 5 SRC = src6 DEF =def7 RAW =raw8 SCRIPTS = scripts9 DESTBIN =@BINDIR@10 DESTWWW = @HTDOCS@/ippMonitor5 SRC = src 6 DEF = def 7 RAW = raw 8 SCRIPTS = scripts 9 DESTBIN = @BINDIR@ 10 DESTWWW = @HTDOCS@/ippMonitor 11 11 12 12 GENERATE = $(SCRIPTS)/generate … … 172 172 $(DESTWWW)/fullforceRun.php \ 173 173 $(DESTWWW)/fullforceSummary.php \ 174 $(DESTWWW)/f ailedFullforce.php \174 $(DESTWWW)/fullforce_failure.php \ 175 175 $(DESTWWW)/diffSummary.php \ 176 176 $(DESTWWW)/diffSummary_Images.php \ … … 280 280 $(DESTWWW)/noimage.png 281 281 282 DESTLINK = $(DESTWWW)/index.php 282 DESTLINK = $(DESTWWW)/index.php 283 283 284 284 php: $(RAWSRC) $(DEFSRC) $(PICTURES) $(DESTLINK) $(PROGRAMS) … … 288 288 # .PRECIOUS: $(BIN)/%.$(ARCH) 289 289 290 $(DESTLINK): $(DESTWWW)/Login.php 290 $(DESTLINK): $(DESTWWW)/Login.php 291 291 rm -f $@ 292 292 ln -s $(DESTWWW)/Login.php $@ -
trunk/ippMonitor/configure.tcsh
r39498 r41126 134 134 135 135 set hostname = `hostname -f` 136 set hostname2 = `hostname` 136 137 137 138 echo … … 182 183 if (-e Makefile) mv -f Makefile Makefile~ 183 184 cat Makefile.in | sed "s|@HTDOCS@|$htdocs|" > tmp.1 184 cat tmp.1 | sed "s|@BINDIR@|$bindir|" > Makefile 185 rm -f tmp.1 185 cat tmp.1 | sed "s|@HOST2@|$hostname2|" > tmp.2 186 cat tmp.2 | sed "s|@BINDIR@|$bindir|" > Makefile 187 rm -f tmp.2 186 188 187 189 # convert raw/site.php.in to raw/site.php … … 193 195 cat tmp.1 | sed "s|@DBI@|$DBI|" > tmp.2 194 196 cat tmp.2 | sed "s|@HOST@|$hostname|" > tmp.1 195 awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 > raw/site.php 197 cat tmp.1 | sed "s|@HOST2@|$hostname2|" > tmp.2 198 awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.2 > raw/site.php 196 199 cat config.dat >> raw/site.php 197 awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp. 1>> raw/site.php200 awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.2 >> raw/site.php 198 201 199 202 rm -f tmp.1 tmp.2 -
trunk/ippMonitor/czartool/czarpoll.pl
r41125 r41126 350 350 print "* Performing database cleanup\n"; 351 351 $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval()); 352 print "* Optimizing the database\n";353 $czarDb->optimize();352 #print "* Optimizing the database\n"; 353 #$czarDb->optimize(); 354 354 $lastDayDailyTasks = $yesterday; 355 355 } -
trunk/ippMonitor/def/fullforce_failure.d
r40882 r41126 1 TABLE staticskyRun JOIN staticskyResult USING (sky_id) JOIN staticskyInput USING (sky_id) JOIN stackRun USING (stack_id)2 TITLE Static Sky Failed (Log)3 FILE f ailedStaticsky.php4 MENU ipp. stack.dat1 TABLE fullForceInput JOIN warpRun USING (warp_id) JOIN fullForceRun USING (ff_id) JOIN fullForceResult USING (ff_id) 2 TITLE Full Force Failed 3 FILE fullforce_failure.php 4 MENU ipp.ffs.dat 5 5 6 WHERE staticskyResult.fault != 0 6 ARGS ARG1 fullForceRun.ff_id=$fullForceRun.ff_id 7 ARGS ARG1 basename=$fullForceResult.path_base 7 8 8 ARGS ARG1 staticskyResult.path_base=$staticskyResult.path_base 9 WHERE fullForceResult.fault != 0 10 # field size format name show link to extras 11 FIELD fullForceRun.ff_id, 5, %d, FF ID 12 FIELD fullForceRun.label, 7, %s, Label 13 FIELD fullForceRun.state, 7, %s, State, value, fullforce_failure.php, ARG1 14 FIELD warpRun.tess_id, 5, %s, Tess ID 15 FIELD warpRun.label AS warpRunLabel, 5, %s, warp Label 16 FIELD fullForceRun.data_group, 7, %s, data grp 17 FIELD fullForceRun.dist_group, 7, %s, dist grp 18 FIELD fullForceResult.fault, 7, %d, fault 19 FIELD fullForceResult.quality, 7, %d, quality 20 FIELD fullForceResult.path_base, 7, %s, path_base, none 9 21 10 # field size format name show link to extras 11 FIELD staticskyRun.sky_id, 5, %d, Sky ID 12 FIELD staticskyRun.label, 7, %s, Label 13 FIELD staticskyRun.state, 7, %s, State, value, staticsky_failure.php, ARG1 14 FIELD stackRun.skycell_id, 5, %s, Skycell ID 15 FIELD stackRun.tess_id, 5, %s, Tess ID 16 FIELD count(stackRun.filter), 5, %d, #Filters 17 FIELD stackRun.label, 5, %s, Stack Label 18 FIELD staticskyRun.data_group, 7, %s, data grp 19 FIELD staticskyRun.dist_group, 7, %s, dist grp 20 FIELD staticskyResult.sources, 7, %d, n(sources) 21 FIELD staticskyResult.fault, 7, %d, fault 22 FIELD staticskyResult.quality, 7, %d, quality 23 FIELD staticskyResult.path_base, 5, %s, path_base, none 24 25 GROUP staticskyRun.sky_id 22 MODE summary 23 GROUP fullForceRun.ff_id 26 24 27 25 TAIL PHP insert_log ('LOG.EXP'); 26 -
trunk/ippMonitor/raw/ipp.php
r40842 r41126 351 351 // loop over the lines in the file and generate lines in the menu 352 352 while ($line = fgetcsv ($file, 1024, "|")) { 353 if (ereg ('^[:blank:]*#', $line[0])) continue; 353 if (preg_match ("/#/", $line[0])) continue; 354 // if (ereg ('^[:blank:]*#', $line[0])) continue; 354 355 if (count($line) < 2) continue; 355 356 -
trunk/ippMonitor/raw/site.php.in
r40432 r41126 16 16 // the names of database machines and users 17 17 18 // location of plots produced by czarpoll.pl 19 $CZARPLOTDIR = "/export/@HOST2@.0/ipp/czartool_plots"; 20 $METRICSPLOTDIR = "/export/@HOST2@.0/ipp/ippMetrics"; 21 18 22 @CONFIG.DAT@ 19 23
Note:
See TracChangeset
for help on using the changeset viewer.
