I need a solution
VCS: 6.0.1
RHEL 6.4
I have several application resources, which show offline even though they are online. I can start them manually, i.e. using the commands configured in the resource. Even the StartProgram works.
Resource description:
runfcgipelix3 State <host1> OFFLINE
runfcgipelix3 State <host2> OFFLINE
runfcgipelix3 CleanProgram global /opt/app_pelix/pelix/fcgi/runfcgipelix3.sh stop
runfcgipelix3 ComputeStats global 0
runfcgipelix3 ContainerInfo global Type Name Enabled
runfcgipelix3 EnvFile global
runfcgipelix3 MonitorProcesses global
runfcgipelix3 MonitorProgram global /opt/app_pelix/bin/runfcgipelix3_status
runfcgipelix3 PidFiles global
runfcgipelix3 ResContainerInfo global Type Name Enabled
runfcgipelix3 ResourceInfo global State Stale Msg TS
runfcgipelix3 ResourceRecipients global
runfcgipelix3 StartProgram global /opt/app_pelix/pelix/fcgi/runfcgipelix3.sh start
runfcgipelix3 StopProgram global /opt/app_pelix/pelix/fcgi/runfcgipelix3.sh stop
runfcgipelix3 TriggerPath global
runfcgipelix3 TriggerResRestart global 0
runfcgipelix3 TriggerResStateChange global 0
runfcgipelix3 TriggersEnabled global
runfcgipelix3 UseSUDash global 0
runfcgipelix3 User global pelix
Monitoring script:
#!/bin/sh
#. /etc/rola/minimalenv
. $HOME/.rolaenv
WORKDIR="$HOME/fcgi"
SOCKET="socket/fcgipelix3"
CONFIG="FCgiPelix3.conf"
case "$1" in
start)
$0 stop
sleep 1
cd $WORKDIR
nohup ./FCgiPelix3 -L -u $SOCKET -f $CONFIG < /dev/null \
> /dev/null 2>&1 &
;;
test)
$0 stop
sleep 1
cd $WORKDIR
./FCgiPelix3 -L -u $SOCKET -f $CONFIG
;;
status)
N=`abs FCgiPelix3 | wc -l`
echo "status: $N"
if [ $N -gt 0 ]; then
exit 110
else
exit 100
fi
;;
stop)
abs -k FCgiPelix3
;;
*)
echo "usage: $0 {start|stop|status|test}"
;;
esac
Executing the monitoring command:
root@<host1> bin]# su - pelix -c "/opt/app_pelix/pelix/fcgi/runfcgipelix3.sh status"
status: 1
[root@<host1> bin]# echo $?
110
The monitoring script does return the correct value, but this does not seem to get picked up by VCS.
Ther are three resources set up like this, none of them work.
Thank you for your help.