[prev in list] [next in list] [prev in thread] [next in thread] 

List:       veritas-ha
Subject:    Re: [Veritas-ha] Application Agent Problem
From:       "Tom Stephens" <tom_stephens () symantec ! com>
Date:       2007-02-13 0:29:02
Message-ID: 39310EC65ADF75458980739A2810901E03109029 () svlxchcln2 ! enterprise ! veritas ! com
[Download RAW message or body]

Holger,

	You should make the exit values for your monitor script equal
100 for offline and 110 for online, given the version of VCS you are
using.  
	I don't suppose the line:
{ if ($4 == "Alive") {exit 1} else {exit 0}
	Is causing you issues? 

	But a easy way to trouble shoot would be to run your monitor
script, passing it all the arguments and then echo $? To make sure your
exit value is correct.  

	Tom



-----Original Message-----
From: veritas-ha-bounces@mailman.eng.auburn.edu
[mailto:veritas-ha-bounces@mailman.eng.auburn.edu] On Behalf Of Holger
Apel
Sent: Monday, February 12, 2007 1:48 AM
To: Veritas-ha@mailman.eng.auburn.edu
Subject: [Veritas-ha] Application Agent Problem

Hi @all,

i have  a problemn with my Application Agent which i am using to control
an Oracle Application Server.

Parameters of the agent:

MonitorProgram   global     /opt/VRTSvcs/bin/opmn/opmnstatus.sh home
StartProgram     global     /oracle/OAS10gR2/opmn/bin/opmnctl startproc
process-type=home
StopProgram      global     /oracle/OAS10gR2/opmn/bin/opmnctl stopproc
process-type=home


The Problem:

Im getting warnings like this all the time and the resource is in an
undefined State sometimes:

2007/02/12 10:14:39 VCS WARNING V-16-10001-51 (SO00129)
Application:home:monitor:State returned by Monitor Program
(/opt/VRTSvcs/bin/opmn/opmnstatus.sh home):UNKNOWN.

What is the Meaning of UNKNOWN? The script allways returns a value:

#! /bin/sh
/oracle/OAS10gR2/opmn/bin/opmnctl status -noheaders -fsep " "
process-type=$1 \
        |/usr/bin/awk '{ if ($4 == "Alive") {exit 1} else {exit 0} }'
result=$?
if [ $result -eq 1 ]
then
 exit 110
else
 exit 100
fi


I also tried to return the result directly, but it makes no difference
if
i return 0 or 100, 1 or 110. Sometimes the had seems not not recongnize
what the agent returns. :(

OS is Solaris 10, VCS-Version is 4.1 (MP1)

Any Ideas?

Thanks in advance and best regards!

Holger.

_______________________________________________
Veritas-ha maillist  -  Veritas-ha@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-ha


_______________________________________________
Veritas-ha maillist  -  Veritas-ha@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-ha
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic