Help Center/ MapReduce Service/ User Guide/ MRS Cluster O&M/ Viewing and Configuring MRS Alarm Events/ Connecting an MRS Cluster to the Syslog Server to Report Alarms
Updated on 2024-09-23 GMT+08:00

Connecting an MRS Cluster to the Syslog Server to Report Alarms

If users need to view alarms and events of a cluster on the unified alarm reporting platform, you can use the Syslog protocol on FusionInsight Manager to report related data to the alarm platform.

If the Syslog protocol is not encrypted, data may be stolen.

Prerequisites

The ECS corresponding to the server must be in the same VPC as the MRS cluster's Master node, and the Master node must be able to access the server's IP address and specified port.

Connecting an MRS Cluster to the Syslog Server to Report Alarms

  1. Log in to the Manager and go to the SNMP configuration page.

    • MRS 3.x or later:
      1. Log in to FusionInsight Manager.
      2. Choose System > Interconnection > Syslog.
      3. Enable the Syslog service.
    • Versions earlier than MRS 3.x:
      1. Log in to MRS Manager and click System.
      2. In Configuration, enable Configure Syslog under Monitoring and Alarm.

  2. Set northbound parameters based on Table 1.

    Table 1 Syslog interconnection parameters

    Parameter Area

    Parameter

    Description

    Syslog Protocol

    Server IP Address Mode

    Specifies the IP address mode of the interconnected server. The value can be IPV4 or IPV6. (only for MRS 3.x or later)

    Server IP Address

    Specifies the IP address of the interconnected server.

    Server Port

    Specifies the port number for interconnection.

    Protocol

    Specifies the protocol type. The options are as follows:

    • TCP
    • UDP

    Severity Level

    Specifies the severity of the reported message. The options are as follows:

    • Emergency
    • Alert
    • Critical
    • Error
    • Warning
    • Notice
    • Informational (default value)
    • Debug
      NOTE:

      Severity Level and Facility determine the priority of the sent message.

      Priority = Facility × 8 + Severity Level

      For the values of Severity Level and Facility, see Table 2.

    Facility

    Specifies the module where the log is generated. For the available values of this parameter, see Table 2. Default value local use 0 (local0) is recommended.

    Identifier

    Product ID.

    The identifier can contain a maximum of 256 characters, including letters, digits, underscores (_), periods (.), hyphens (-), spaces, and the following special characters: | $ { }

    • MRS 3.x or later: The default value is FusionInsight Manager.
    • Versions earlier than MRS 3.x: The default value is MRS Manager.

    Report Message

    Report Format

    Specifies the message format of the alarm report. For details, see the help information on the page.

    The report format can contain a maximum of 1024 characters, including letters, digits, underscores (_), periods (.), hyphens (-), spaces, and the following special characters: | $ { }

    NOTE:

    For details about each field in the report format, see Table 3.

    Alarm Type

    Specifies the type of the alarm to be reported.

    • For MRS 3.x or later, see Table 3.
    • Versions earlier than MRS 3.x:
      • Fault: indicates that the Syslog alarm message is reported when MRS Manager generates an alarm.
      • Clear: indicates that a Syslog alarm message is reported when an alarm on MRS Manager is cleared.
      • Event: indicates that the Syslog alarm message is reported when MRS Manager generates an event.

    Alarm Severities

    Specifies the level of the alarm to be reported.

    • For MRS 3.x or later, see Table 3.
    • Versions earlier than MRS 3.x: Suggestion, Minor, Major, and Critical.

    Uncleared Alarm Reporting

    Periodic Uncleared Alarm Reporting

    Specifies whether to report uncleared alarms in a specified period. You can toggle on or off the function. The function is toggled off by default.

    Report Interval (min)

    Specifies the interval for periodically reporting uncleared alarms. This parameter is valid only when Periodic Uncleared Alarm Reporting is enabled. The default value is 15, in minutes. The value ranges from 5 to 1440 (one day).

    Heartbeat Settings

    Heartbeat Reporting

    Specifies whether to periodically report Syslog heartbeat messages. You can toggle on or off the function. The function is toggled off by default.

    Heartbeat Interval (minutes)

    Specifies the interval for periodically reporting heartbeat messages. This parameter is valid only when Heartbeat Reporting is enabled. The default value is 15, in minutes. The value ranges from 1 to 60.

    Heartbeat Packet

    Specifies the heartbeat message to be reported. This parameter is valid when Heartbeat Reporting is toggled on and cannot be left blank. The value can contain a maximum of 256 characters, including digits, letters, underscores (_), vertical bars (|), colons (:), spaces, commas (,), and periods (.).

    After the periodic heartbeat packet function is enabled, packets may be interrupted during automatic recovery of some cluster error tolerance (for example, active/standby OMS switchover). In this case, wait for automatic recovery.

  3. Click OK.

Related Information

Table 2 Numeric codes of Severity Level and Facility

Severity Level

Facility

Numeric Code

Emergency

kernel messages

0

Alert

user-level messages

1

Critical

mail system

2

Error

system daemons

3

Warning

security/authorization messages (note 1)

4

Notice

messages generated internally by syslog

5

Informational

line printer subsystem

6

Debug

network news subsystem

7

-

UUCP subsystem

8

-

clock daemon (note 2)

9

-

security/authorization messages (note 1)

10

-

FTP daemon

11

-

NTP subsystem

12

-

log audit (note 1)

13

-

log alert (note 1)

14

-

clock daemon (note 2)

15

-

local use 0~7 (local0 ~ local7)

16 to 23

Table 3 Report format information fields

Information Field

Description

dn

Cluster name

id

Alarm ID

name

Alam name

serialNo

Alarm serial number

NOTE:

The serial numbers of the fault alarms and the corresponding clear alarms are the same.

category

Alarm type. The options are as follows:

  • 0: fault alarm
  • 1: clear alarm
  • 2: event

occurTime

Time when the alarm was generated

clearTime

Time when this alarm was cleared

isAutoClear

Whether an alarm is automatically cleared. The options are as follows:

  • 1: yes
  • 0: no

locationInfo

Location where the alarm was generated

clearType

Alarm clearance type. The options are as follows:

  • -1: not cleared
  • 0: automatically cleared
  • 2: manually cleared

level

Severity. The options are as follows:

  • 1: critical alarm
  • 2: major alarm
  • 3: minor alarm
  • 4: warning alarm

cause

Alarm cause

additionalInfo

Additional information

object

Alarm object