beautypg.com

5 modifying email alerts, 6 creating email alerts, Modifying email alerts -44 – HP StorageWorks Scalable File Share User Manual

Page 174: Creating email alerts -44, Modifying email alerts (section 6.2.5), Creating email alerts (section 6.2.6)

background image

Verifying, diagnosing, and maintaining the system

6–44

6.2.5 Modifying email alerts

When the HP SFS system software is installed, a number of email alerts are created by default (see

Section 6.2.4 for more information). You can use the

modify alert

command to change the email

addresses on the default alerts. In addition, you can use the

modify alert

command to modify any email

alerts that you create on the system.

To modify an email alert, enter the

modify alert

command as shown in the following example. A series

of questions prompts you to enter the information. To accept any information that is already defined for the

alert, press the

Return

key. In this example, the email address is changed on the

array_failure

alert,

which is one of the default alerts:

sfs> modify alert array_failure

A filter is an expression used to select specific event(s). When an
event occurs that matches the filter, the alert triggers.

An example filter is:
facility=server && data contains "Down"

Enter filter [data contains "array" && severity>err]:

When an alert triggers, an email is sent. Specify a comma
seperated list of email addresses. For example:
[email protected],[email protected]

Enter email address(s): [email protected]

An alert throttle may be specified (in minutes). If an alert is throttled
the first event triggers an alert but subsequent events, for the duration
of the throttle will not be sent. A throttle value of 0 disables throttling.

Enter the throttle period (minutes) for the alert [0]:

The following alert will be created:

Alert: array_failure
Filter: data contains "array" && severity>err
E-mail: [email protected]
Throttle: 0

Is this correct? (yes/no/cancel): yes

sfs>

6.2.6 Creating email alerts

To create an email alert, enter the

create alert

command as shown in the following example. A series

of questions prompts you to enter the necessary information. Note that if you enter more than one email

address, you must separate the entries with commas:

sfs> create alert
.

.

.

Enter alert name: server_down
.

.

.

unload-failure

Alerts you when an OST or

MDS service fails to

unload when a file system

is being stopped. Since

the service cannot stop, it

will not start on another

server.

facility=lustre &&
severity>warning &&
data contains
"unload-failed"

Reboot the server where the

service is in the

unload-

failed

state.

Table 6-4

Default email alerts

Email Alert Name

Purpose

Email Alert Filter

Action Required