That is fantastic thanks for sharing
Sent from Blackberry please excuse Brevity.
From: CA Infrastructure Management Global User Community (eHealth/Spectrum/NetQoS) [mailto:
CommunityAdmin@communities-mail.ca.com]
Sent: Friday, July 27, 2012 12:05 AM
To:
mb.2239493.98650223@myca-email.ca.com <
mb.2239493.98650223@myca-email.ca.com>
Subject: [CA Spectrum] RE: Spectrum Alarm Notifier Fault Tolerance?
Here is my solution which works on the assumption that if primary server is down (and alarm notifier) then secondary server and alarm notifier will alert - as an aside I set alarm notifer to autostart and autorestart, I run scripts to check tthe status of Alarm notifier and if that files I use paging systems to alert me
Anyway
Your primary spec DB will have precedence 10 (thats attribute 0x12c0a in every model)
Assume your secondary Spectrum is precendence 20
On both servers add this to $specroot/Notifier/.alarmrc
EXTRA_ATTRS_AS_ENVVARS=0X12C0A
In setscript and clearscript in the bit just after
if [ "$SENDMAIL" = "True" ]
then
RECIPIENTS=$VARFORMAIL
........."
RECIPIENTS="NotificationData/RepairPerson"
fi
On primary add this -
if [[ "$SANM_0X12C0A" = "20" ]]
then
echo "SS Secondary is running"
echo "Precedence = $SANM_0X12C0A"
exit 0
fi
On secondary add this
if [[ "$SANM_0X12C0A" = "10" ]]
then
echo "SS Primaryis running"
echo "Precedence = $SANM_0X12C0A"
exit 0
fi
What this will do is
whenever an alarm is generated the model in the DB is checked and the attribute 0x12x0a is read - if its 10 (primary server precedence) then Primary Alarm notifier sends it and secondary will write a line to the notifier log file saying primary is running
If 0x12x0a is 20 then Seconday server Alarm notifier will send the mail and the primary would write to the notifier file saying seconday is running
Been using this for 4 years now no issues
Posted by:jasonheb
--
CA Communities Message Boards
https://communities.ca.com/web/ca-ehealth-and-ca-spectrum-global-user-community/message-boards/-/message_boards/view_message/98650223
mb.2239493.98650223@myca-email.ca.com
https://communities.ca.com
Please be aware that Logicalis UK Ltd may monitor email traffic data and also email content for security purposes.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________
This email communication does not create or vary any contractual relationship between Logicalis and you. Internet communications are not secure and accordingly Logicalis does not accept any legal liability for the contents of this message. The contents of this email are confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to or used by anyone other than this addressee, nor may it be copied in any way. If received in error, please contact Logicalis on the above switchboard number quoting the name of the sender and the addressee and then delete it from your system. Please note that neither Logicalis nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any).
Please be aware that Logicalis UK Ltd may monitor email traffic data and also email content for security purposes.
Logicalis UK Ltd, Registered in England and Wales No: 3732397, Registered Office: 110 Buckingham Avenue, Slough. Berkshire, SL1 4PF
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit
http://www.symanteccloud.com
______________________________________________________________________