Monitor Goldengate Process 1) create file Ogginfo$vim in Goldengate installation directory Ogginfo info all2) Configure fetion Alarms Download Fetion Install package/HTTP/ down.51cto.com/data/240154 $mkdir /usr/local/sms Upload the Fetion code package to the SMS directory and assign the owner to Oracle3) Configuration MonitoringScript Vi/usr/local/bin/gg_monitor.sh#!/bin/sh#monitor goldengate process STATUSGG_DIR=/ORACLE/GOLDENGATECD $GG _dir./ Ggsci <ogginfo.sh |sed-n '/manager/,/replicat/p ' |awk ' {print $} ' >status.logfor I in ' cat Status.log ';d o if [ [$i = = RUNNING]]; then echo 0; else LD_LIBRARY_PATH=/usr/local/sms //usr/local/sms/fetion--mobile=15910683240--pwd=123456 --to=15910683240--msg-utf8= "GoldenGate ERROR"; fi; DONE;4) Add Scheduled Tasks let the system perform a check every 10 minutes #crontab–e &NBSP;&NBSP;*/10 * * * * su -oracle -c "sh/usr/local/bin/gg_monitor.sh >/dev/null 2>&1"
Monitor goldengate processes with fetion