#!/bin/csh -f

echo "Do NOT run these commands as a script : read the comments and choose the options carefully"
echo "The examples below are appropriate for the 2021.07.22 installation on ipp117 for user 'ipp'"
exit 2

# below are commands to configure ippMonitor

# we have moved all user/password info into config.dat (see config.dat.in for an example)

# --site defines the location of the ipp configuration site-specific information
# note that we have a special version for ippmonitor without $PSCONFIG/$PSCONFDIR values:
# --site ~/ippconfig/ippmonitor.config

# Set psconfig to use a different build from the standard ops tag.
# This allows testing of those parts of ippMonitor which depend on IPP
# code without modifying the operational installation

# The choice of psconfig also depends on which user account is used to
# build/install ippMonitor, so be careful when doing a new check-out
# of the code for a different user.

# The value also needs to match the PATH entry in ~/ippconfig/ippmonitor.config

# Choose an appropriate psconfig (must exist and match PATH in ~/ippconfig/ippmonitor.config)"
# It also must be built for the same O/S as the install machine"
# for example:"
psconfig ipp-20210708-gentoo

# run psconfigure to generate Makefile and raw/site.php 
# $CZARPLOTDIR and $METRICSPLOTDIR will be generated a link in the same folder as ippMonitor  
psconfigure --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config

# copy these files and modify them (CCL removed CZARPLOTDIR)
cp config.dat.in config.dat

# for running czarpool.pl, 
cp czartool/czarconfig.xml.in czartool/czarconfig.xml

# install the php code:
# czartool_plots and ippMetrics will be linked to different path in different hostnames 
make

# then set gnuplot path for czartool_plots and ippMetrics in ippMonitor dir
# <path>/var/www/localhost/htdocs/ippMonitor/czartool_plots</path> 
# <savelocation>/var/www/localhost/htdocs/ippMonitor/ippMetrics</savelocation>

# czarpoll.pl and roboczar.pl should be launched within 'screen' processes, traditionally
# named CzarPoll and Roboczar
 
