Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Rdb > Monitoring Hot ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 129 of 183
Post > Topic >>

Monitoring Hot Standby

by palmipede <palmiped@[EMAIL PROTECTED] > Sep 6, 2005 at 10:29 PM

Hello

I have setup a Rdb  Hot Standby at a customer's site. It works fine.

In order to monitor that the replication is still active, I looked in 
the docs, but failed to find a procedure to do the job.

I ended with the following dirty hack, which may be late to detect the 
problem


$ !'f$ver(1)
$ set noon
$ if  F$TRNLNM("wait_hot","LNM$SYSTEM",0,"SUPERVISOR",,).eqs.""
$   then
$   define/sys wait_hot "0 00:01:00.00"
$ endif
$ def tcpip$smtp_from "Admin Vms"
$ node == f$getsyi("nodename")
$ boucle:
$  pipe rmu/dump citox$db | sea sys$pipe -
"Database is currently being replicated","Master"/match=and
$ if $severity.eq.1
$    then
$    def/group  surv_hot ok
$    else
$    def/sys wait_hot  "0 01:00:00.00"
$ endif
$  log = F$TRNLNM("surv_hot","LNM$GROUP",0,"SUPERVISOR",,)
$ if log.eqs.""
$    then
$    ti == f$time()
$    mail nl: dupont@[EMAIL PROTECTED]
 -
         /subj=" replication base xx stopped on ''node' at ''ti' "
$ endif
$ wait 'F$TRNLNM("wait_hot","LNM$SYSTEM",0,"SUPERVISOR",,)
$ deas/group surv_hot
$ goto boucle
$ exit


I then thought about having all Rdb Hot standby messages go to OPERn, 
and use a program like opcom_catcher to intercept that.

I think there must be a much better way ?

Regards

Gérard




 3 Posts in Topic:
Monitoring Hot Standby
palmipede <palmiped@[E  2005-09-06 22:29:31 
Re: Monitoring Hot Standby
Norman Lastovica <norm  2005-09-12 10:43:03 
Re: Monitoring Hot Standby
webmaster <webmaster@[  2005-09-12 21:28:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 15:27:57 CDT 2008.