Professional Documents
Culture Documents
0 for UNIX:
Install and Configure
Lesson 10: Configuring Notification
1
Lesson introduction
Lesson objectives
Topic
Objectives
Notification overview
After completing this topic, you
will be able to describe how VCS
provides notification.
Notification overview
1. HAD sends a message to the notifier daemon when an
event occurs.
designated recipients
HAD
SMTP
SNMP
notifier
HAD
resource.
ClusterService
notifier
csgnic
notifier
HAD
HAD
Resource state
unknown
Service group is
online
Error
Information
Concurrency violation
SevereError
HAD
SMTP
SNMP
notifier
HAD
6 15:19:37 2011
Notifier
e-mail
Information
Log file
INFO
NOTICE
Warning
WARNING
Error
ERROR
SevereError
CRITICAL
Viewing logs
Engine log location: /var/VRTSvcs/log/engine_A.log
View logs using the GUI or the hamsg command:
hamsg engine_A
Unique Message
Identifier (UMI)
Most Recent
Configuring
notification
After completing this topic, you
will be able to configuring
notification using the NotifierMngr
resource.
10
Configuration methods
CLI
Use hares
command
Add resource
of
NotifierMngr
type
VOM
Veritas
Operations
Manager
go.symantec.c
om/
vom
Installer
Respond to
prompts
during
cluster
configuration
Set attributes
11
Notification configuration
Add a NotifierMngr resource to ClusterService group.
Modify the SmtpServer and SmtpRecipients attributes.
Optionally, modify ResourceOwner and GroupOwner.
Modify SnmpConsoles, if using SNMP notification.
Configure the SNMP console to receive VCS traps.
If SMTP
notification
is required
If SNMP
notification
is required
12
Value
ClusterService
Resource name
notifier
Either SnmpConsoles
or SmtpXxx attributes
must be specified.
Resource type
NotifierMngr
Required attributes
SmtpServer
mailserver.company.co
m
SmtpRecipie
nts
gene@company.com =
Error
*Required attributes:
main.cf
NotifierMngr notifier (
SmtpServer = "mailserver.company.com"
SmtpRecipients = { "gene@company.com" = Error }
)
13
engine_A.log
ResourceStateUnknow
n
Notification events
ResourceRestarting
By
Agent
ResourceMonitorTimeo ResourceWentOnlin
ut
eByItself
CLI
ResourceNotGoingOffli ResourceFaulted
ne
hares modify resource ResourceOwner kim
14
E-mail message
Notification events
CLI
From: Notifier
Subject: VCS Information, Service group is
online
Event Time: Wed Aug 23 18:23:09 2011
. . .
Entities Owner: chris
Concurrency
violation
Restarting
Online
Offline
Autodisabled
Switching
15
main.cf snippet
SystemRecipients
cluster
ClusterRecipients
Values:
Fully-qualified )
e-mail addresses
vcs_cluster (
UserNames = { admin = ************ }
Administrators = { admin }
ClusterRecipients= { " janedoe@gmail.com" Error }
Severity:
SevereError, Error, Warning,
Information
16
17
18
Using triggers
Triggers are:
Resource keys
RESFAULT
RESNOTOFF
RESSTATECHA
NGE
New
RESRESTART
RESADMINWAI
T
19
$VCS_HOME
/opt/VRTSvcs
$VCS_HOME/value_of_TriggerPath/trigger_name/
Example for preonline:
TriggerPath = "bin/test/websg"
Path to trigger: $VCS_HOME/bin/test/websg/preonline/
Sample triggers
Provided for each type of trigger
Can be copied and modified
Are located in /opt/VRTSvcs/bin/sample_triggers
more /opt/VRTSvcs/bin/sample_triggers/resfault
. . .
# Usage:
# resfault <system> <resource> <oldstate>
#
# <system>: is the name of the system where resource faulted.
# <resource>: is the name of the resource that faulted.
# <oldstate>: is the previous state of the resource that
# faulted.
#
# Possible values for oldstate are ONLINE and OFFLINE.
. . .
21
ls
ls /opt/VRTSvcs/bin/test/websg/preonline/
/opt/VRTSvcs/bin/test/websg/preonline/
T01backup
T01backup
T02setenv
T02setenv
T03online
T03online
22
Lesson summary
Key points
You can choose from a variety of notification methods.
Customize the notification facilities to meet your specific
requirements.
Reference materials
Veritas Cluster Server Bundled Agents Reference Guide
Veritas Cluster Server Users Guide
Symantec Operations Readiness Tools
23
End of Presentation
24