• No results found

Creating a custom event profile

Custom event profiles enable you to send notifications when specific system events occur.

You cannot view system events and profiles outside the domain that you are logged in to. This affects the profiles that you can edit and the events that you can add to a profile. Procedure

1. In Avamar Administrator, select Tools > Manage Profiles. The Manage All Profiles window appears.

2. In the left pane, select the domain for the custom event profile, and click New. The New Profile wizard appears.

3. In the Profile Name box, type a name for the event profile.

4. Choose whether to enable or disable the profile by selecting or clearing the Profile Enabled checkbox.

5. Choose whether to enable email notifications for the profile by selecting or clearing the Email Enabled checkbox.

6. If you enabled email notifications, then specify whether to send email notifications as soon as events occur or on a scheduled basis:

l To send email notifications as soon as events occur, select Send data as events occur.

l To send email notifications on a scheduled basis, select Send data on a schedule,

and then select the schedule from the list.

7. Choose whether to enable or disable syslog notification for the profile by selecting or clearing the Syslog Notification – Enabled checkbox.

8. Choose whether to enable or disable SNMP notification for the profile by selecting or clearing the SNMP Trap Notification – Enabled checkbox.

9. Click Next.

The Event Codes page appears.

10.Click the All Codes tab, and then select the Notify checkbox next to the errors that should trigger notifications.

NOTICE

An asterisk (*) next to an event indicates an event of such severity that a notification is sent when that event occurs, even if other event notifications are sent on a schedule.

11.Click the Audit Codes tab, and then select the Notify checkbox next to the audit events that should trigger notifications.

NOTICE

An asterisk (*) next to an event code indicates an event of such severity that a notification is sent when that event occurs, even if other event notifications are sent on a schedule.

12.If you are adding this custom event profile at the top-level (that is, not to a domain or subdomain), specify the parameters to control capacity forecast alerts:

a. Click the Parameters tab.

b. Select the checkbox next to the parameter, and then type a new value for the parameter.

c. Repeat the previous step as necessary for each parameter. 13.Click Next.

The Attachments page appears.

14.(Optional) If the profile includes email notification messages, select the Attach Server status in email (XML) checkbox to include a report of overall Avamar server status in XML format in the messages.

15.(Optional) To include Avamar server logs in email notification messages, select the

Attach Server logs in email checkbox and then type the full path to the location of Avamar server logs in the Directory box. The default location is /usr/local/ avamar/var/cron/.

16.Specify the reports to include in email notification messages: a. Select the Attach checkbox next to the report to include.

b. Select the checkbox next to the report for the file formats in which to send the report. You can select XML, CSV, or TXT.

c. Specify the number of historical reports of this type to send with each notification message using the Since Count and Since Unit fields. For example, send the past two months of these reports.

The following values are available from the Since Count list:

l day(s) ago l week(s) ago l month(s) ago l since last modified

17.Click Next.

The Email Notification page appears.

18.If the profile includes email notification messages, then specify the recipients and options for the email notification messages:

a. In the Email Subject Header box, type an email subject line for the notification message.

b. Add an email recipient to the list by typing a valid email address in the Enter Recipient box and then clicking +.

c. (Optional) To remove a recipient from the Recipient Email List, select the recipient and click -.

d. To insert all attachments into the body of the email notification message, select the Inline attachments checkbox.

NOTICE

When you insert the attachments, the email message may be very long. e. To immediately send a test email message, click Send Email.

If the test email message is sent successfully, an Email accepted by transport layer confirmation message appears.

19.Click Next.

The Syslog Notification page appears.

20.If the profile includes syslog notification messages, then specify the syslog notification parameters:

a. In the Address (IP or hostname) box, type the IP address or hostname of the Avamar server node running the syslogd process.

b. In the Port Number box, type the port number used for syslog communication. c. Choose whether to include extended event code information in the syslog

message by selecting or clearing the Include extended event data checkbox. The extended information is delimited by using the following tags:

<Code> <Type> <Severity> <Category> <HwSource> <Summary> <active> <lastEmailSendDate> <domain> <scheduleID> <num_prefs> <name> <isSystem>

d. From the Facility list, select one of the following: user, local0, local1, local2,

local3, local4, local5, local6, or local7.

e. To test the syslog notification parameters, click Send Test Syslog Entry. 21.Click Next.

The SNMP Trap Notification page appears.

22.If the profile includes SNMP notification messages, then specify SNMP notification parameters:

a. In the SNMP Trap address (IP or hostname) box, type the IP address or hostname of the computer running an application that is capable of receiving and processing an SNMP trap.

b. In the Port Number box, type the port number on the host machine that is listening for SNMP traps. The default data port is 162.

c. In the SNMP Community box, type the name of the SNMP community that the SNMP trap listener is configured to use.

The SNMP community is a text string that the local Net-SNMP agent uses to authenticate itself with the SNMP management application.

d. To test the SNMP notification parameters, click Send Test SNMP Trap. 23.Click Finish.