siebel server process doesnt show sometimes
We are using IP2015 15.18 i have a script which checks siebel server and gateway server processes
below is a snippet of the code using red hat linux 2.6.32-754.6.3.el6.x86_64
------------------------------------------------------------------------
Enterprise=BCF_DEV
Hostname=vdclascrmdev01
SS_Status=`ps -ef | grep "siebsvc -s siebsrvr -a -g $Hostname:2320 -e $Enterprise" | wc -l`
if [ `expr $SS_Status` -lt 2 ]
then
VFlagSS=RED
else
VFlagSS=Chartreuse
fi
------------------------------------------------------------------------
The code works most of the time but sometimes SS_Status returns value of 1 instead of 2 and it generates false alert that siebel server is down whereas it is not . Is there some setting which is responsible for siebel server going to background process when there is no activity ?