Have VCS to send email to admin upon fault
Created: 24 Aug 2012 | Updated: 28 Aug 2012 | 9 comments
This issue has been solved. See solution.
We a looking for a way to have VCS sends off an e-mail alert when the cluster faults to an admin. Looking at some of the previous solutions, I have come across two possible solutions.
First I need to setup the traps to detect the fault.
https://www-secure.symantec.com/connect/forums/vcs-notifierhanotify
Then I need to create a resource to send an alert.
https://www-secure.symantec.com/connect/forums/alerting-feature-applicationha
Is this correct? I might need help with finding the correct trap status for the fault alert.
Thanks
Discussion Filed Under:
Comments 9 Comments • Jump to latest comment
Sort of correct. There are a number of ways to be sent an email:
This is the easiest method and you can configure multiple recipients to be sent Error, Warning or Info messages and you don't require any traps.
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Option 1 seems like the best option for what is required.
The only requirement is to send off an e-mail when the system Faults (fails over) to backup system in the cluster.
Run
haconf -makerw
hares -add NotifierMngr Application App_Cluster
hares -modify NotifierMngr User root
hares -modify NotifierMngr UseSUDash 0
hares -modify NotifierMngr Enabled 1
haconf -dump -makero
in my types.cf I see this.
type NotifierMngr (
static int RestartLimit = 3
static str ArgList[] = { EngineListeningPort, MessagesQueue, NotifierListeningPort, NotifierSourceIP, SnmpdTrapPort, SnmpCommunity, SnmpConsoles, SmtpServer, SmtpServerVrfyOff, SmtpServerTimeout, SmtpReturnPath, SmtpFromPath, SmtpRecipients }
int EngineListeningPort = 14141
int MessagesQueue = 30
int NotifierListeningPort = 14144
str NotifierSourceIP
int SnmpdTrapPort = 162
str SnmpCommunity = public
str SnmpConsoles{}
str SmtpServer
boolean SmtpServerVrfyOff = 0
int SmtpServerTimeout = 10
str SmtpReturnPath
str SmtpFromPath
str SmtpRecipients{}
)
Is this what I need to update? i never touched this file before I assume just edit the file and vcs will sync it up?
No this is wrong you need to run:
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Slight mistate in last post and it is not working when I try to edit my post so
should not have equals so should just be:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
two more questions and I think I have it.
1. Can/would you recommend I piggy back off my existing cluster service group? I am running Active/Passive at this time because the appliance doesn't support Active/Active at this time. but when the cluster faults it turns off the notifier for that box.
2. Seen this error:
2012/08/28 17:37:28 VCS WARNING V-16-1-17053 Notifier:Mail server specified does not support SMTP VRFY command. Email user cannot be verified
2012/08/28 17:38:23 VCS WARNING V-16-1-17031 Notifier:activated signal 6
See answers below:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
One last question. Is there a way to format the message better right now it throws it as one continues string without line returns and flag it as a high importance message
Event Time: Tue 28 Aug 2012 06:40:25 PM UTCEntity Name: alerts Entity Type: Resource Entity Subtype: Application Entity State: Resource has faulted Traps Origin: Veritas_Cluster_Server System Name: cmsapp-49-209 Entities Container Name: CMSApp_Cluster Entities Container Type: Service Group
Into
Event Time: Tue 28 Aug 2012 06:40:25 PM UTC
Entity Name: alerts
Entity Type: Resource
Entity Subtype: Application
Entity State: Resource has faulted
Traps Origin: Veritas_Cluster_Server
System Name: app-49-209
Entities Container Name: CMSApp_Cluster
Entities Container Type: Service Group
The message usually get sent with line breaks, so I would guess these is some issue with your email client as for example if you view some UNIX files in notepad, they display on all one line, but display ok in WordPad. You could try saving a message in your email client to disk and then try to open with WordPad to see if this is the issue (although this relies on your email client saving the message properly).
There are no options to specify the format of the email.
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
Yeah my e-mail client removed the line returns. Thanks for walkingme thorugh this.
Would you like to reply?
Login or Register to post your comment.