Serviceguard
cancel
Showing results for 
Search instead for 
Did you mean: 

can me monitor Lsnrctl process by service guard

Asif_8
Regular Advisor

can me monitor Lsnrctl process by service guard

Hi !

Can we monitor LSNRCTL process by mc service guard. If Lisner process is fail package move to other node ..

Asif
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: can me monitor Lsnrctl process by service guard

Shalom,

Service Guard package control scripts have a built in monitor function.

It is actually documented pretty well in the package control script template.

Doc:

http://www.docs.hp.com/en/T1442-90014/ch02s03.html

http://docs.hp.com/en/T2357-90009/ch03s03.html

http://www.docs.hp.com/en/T2392-90013/ch03s04.html

SG works the same on Linux as HP-UX.

The docs are good.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Asif_8
Regular Advisor

Re: can me monitor Lsnrctl process by service guard

how to I LSNRCTL procces to under service guard
emha_1
Valued Contributor

Re: can me monitor Lsnrctl process by service guard

hi,

SG is able to monitor listener process as written above.
however, I personally prefer not to fail/move package in case listener fails. not running listener affects just new clients willing to connect to DB whereas package move shuts DB down and so affects all the clients. I rather prefer just restart it and generate an alert.

emha.
Asif_8
Regular Advisor

Re: can me monitor Lsnrctl process by service guard

thanks

Can you help me write script to monitor oracle listner by toolkiet

emha_1
Valued Contributor

Re: can me monitor Lsnrctl process by service guard

hi,

it's nothing special...
core of my monitor looks like


while [ `echo $RETRY` -lt $RETRIES ]
do
D=/usr/local/cmcluster/conf/ORACLE_${ORAINST}
cd ${D}
/bin/sleep ${TIMEOUT}
${D}/toolkit.sh monitor_listener
echo "Montior for listener ${ORAINST} exited, waiting ${TIMEOUT} seconds"
echo "Listener for instance ${ORAINST} restarting"
${D}/toolkit.sh startlistener
if [ $? -ne 0 ]; then
RETRY=$((RETRY + 1))
echo "Listener for instance ${ORAINST} failed to start, retry no. ${RETRY}..."
else
RETRY=0
echo "Listener for instance ${ORAINST} started, resetting counter to zero"
fi
done


it encapsulates default toolkit monitor in order failed listener doesn't cause package to fail but rather restart it.

emha.