#!/bin/ksh # # Script to set off system-wide and Appserver-specific monitors # # # For example: nohup ./monitor ./dec-3-2009/dec-3-2009 20 2880 & # mcp 04-04-2012 modified to add DLC variable as input 4. fileprefix=$1 interval=$2 count=$3 DLC=$4 #MCP ENV=$5 #MCP if [ "$#" -eq 0 ]; then echo " ..." echo " Usage: " echo " nohup ./monitor ./dec-3-2009/dec-3-2009 20 2880 & " echo " ..." exit fi if [ -d $fileprefix ]; then echo "..." echo "Directory $fileprefix Exists" echo "Exiting" echo "..." exit fi mkdir $fileprefix fileprefix=$(echo $fileprefix"/"$fileprefix) #This section sets off 3 system-wide monitors nohup ./monitor-system $fileprefix $interval $count & nohup ./monitor-ps $fileprefix $interval $count & nohup ./monitor-brokers $fileprefix $interval $count $DLC $ENV & #This section add the Databases to monitor # nohup ./progressVSTMonitor.sh $fileprefix $interval $count /Qaddb/prod MFG & # MCP moved to startMonitors.sh #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/proddb MFG & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/admdb ADM & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/bisgen BISGEN & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/bisgmenu BISGMENU & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/cpddb CPD & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/custdb CUST & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/dataexch DATAEX & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/eamdataacc EAMDATA & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/eamproddb EAMPROD & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/hlpdb HLP & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/qxedb QXE & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/qxodb QXO & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/raddb RAD & #nohup ./progressVSTMonitor.sh $fileprefix $interval $count /prod/db/proddb/xttraxmu TRAX &