Skip to main content

PUT /events/monitors/{forwarder_id}

Use this method to modify event forwarders after they are configured without requiring that they be deleted and re-added.

All attributes except the protocol can be modified. For example, an event forwarder can be temporarily disabled using the PUT method, and then re-enabled at a later time.

Authentication

Authentication with username and password is required.

Request URL

PUT https://{management_server_IP}/events/monitors/{forwarder_id}

where {forwarder_id} is the ID of the event forwarder to be deleted. To obtain the filter ID, use the GET /events/monitors method.

Query parameters

None

Request body

Table 1. Azure Log Analytics.
AttributesRequired / OptionalTypeDescription
descriptionOptionalStringDescription for the event forwarder
enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values.
  • true. The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server.
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

nameRequiredStringUser-defined name for the event forwarder. This name must be unique for all event forwarders.
outputFormatOptionalStringOutput format of the forwarded event

Text between double square brackets are the fields that which are replaced with actual values. For a description of each field, use GET /events/monitors?format=formatKeys.

portOptionalStringTCP/UDP port used for the connection. For Azure Log Analytics, this value is always 443.
primaryKeyRequiredStringPrimary key of the log-analytics device that is obtained from the Azure portal.
protocolRequiredStringType of event forwarder. For Azure Log Analytics, this value is always oms_log_analytics.
requestTimeoutOptionalIntegerAmount of time, in seconds, that an event forwarder has to forward events before the request times out

By default, the time-out value is 30 seconds.

schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-forwarding schedules
   calendarOptionalStringSchedule name
   daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

   endingDateOptionalStringDate when the schedule ends
   endTimeOptionalStringTime when the schedule ends
   idOptionalIntegerSchedule ID
   initialEndTimeOptionalString 
   initialStartTimeOptionalString 
   repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

   seriesIdOptionalIntegerSchedule index
   startingDateOptionalStringDate when the schedule starts
   startTimeOptionalStringTime when the schedule starts
   summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

workspaceIDRequiredStringWorkspace ID of the log-analytics device that is obtained from the Azure portal.
The following example modifies an event forwarder for an Azure Log Analytics recipient.
{
"authenticationEmail": "none",
"connectionEmail": ["SSL"],
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY","STATUS_CHANGE","STATUS_UPDATE","GENERAL"],
"componentIDs": [],
"eventID": "",
"eventServices": ["none","support","user"],
"excludedEventIDs": "",
"negateFilter": false,
"sourceIDs": [],
"resourceGroupsUUIDs": [],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "UNKNOWN"
},
...,
{
"severity": "FATAL",
"type": "AUDIT"
}]
}
},
"forwardHidden": false,
"ignoreExcluded": false,
"ipAddress": "192.0.2.20",
"matchEverything": true,
"name": "Email Forwarder",
"port": "25",
"protocol": "email_alert",
"recipients": "user1@company.com",
"requestTimeout": 30,
"scheduler": {
"enabled": false,
"events": [],
"showSummary": false
},
"senderDomain": "company.com",
"senderUserName": "LXCA1",
"subjectFormat": "[[DeviceIPAddress]]-[[EventSeverity]]-[[EventMessage]]",
"useSupportContact": false
}
Table 2. Email service using SMTP.
AttributesRequired / OptionalTypeDescription
authenticationEmailOptionalStringAuthentication type. This can be one of the following values.
  • Regular. Authenticates to the specified SMTP server using the specified user ID and password.

  • NTLM. Uses the NT LAN Manager (NTLM) protocol to authentication to the specified SMTP server using the specified user ID, password, and domain name.

  • OAUTH2. Uses the Simple Authentication and Security Layer (SASL) protocol to authenticate to the specified SMTP server using the specified user name and security token. Typically, the user name is your email address.

    Attention
    The security token expires after a short time. It is your responsibility to refresh the security token.
  • None. No authentication is used.

connectionEmailOptionalArray of stringsConnection type to secure connection to the SMTP server. This can be one of the following values.
  • SSL. Use the SSL protocol while communicating.

  • TLS. (default) Uses TLS to form a secure communication over an unsecure channel.

descriptionOptionalStringDescription for the event forwarder
enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values:
  • true. (default) The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server.
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

nameRequiredStringUser-defined name for the event forwarder. This name must be unique for all event forwarders.
outputFormatOptionalStringOutput format of the forwarded event

Text between double square brackets are the fields that which are replaced with actual values. For a description of each field, use GET /events/monitors?format=formatKeys.

portOptionalStringTCP/UDP port used for the connection. For email, this value is always 25.
protocolRequiredStringType of event forwarder. For email, this value is always email_alert.
recipientsRequiredArray of stringsList of email addresses for the event forwarder, in the format userid@domain (for example, XClarity1@company.com)
requestTimeoutOptionalIntegerAmount of time, in seconds, that a event forwarderhas to forward events before the request times out

By default, the time-out value is 30 seconds.

schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-fowarding schedules
   calendarOptionalStringSchedule name
   daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

   endingDateOptionalStringDate when the schedule ends
   endTimeOptionalStringTime when the schedule ends
   idOptionalIntegerSchedule ID
   initialEndTimeOptionalString 
   initialStartTimeOptionalString 
   repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

   seriesIdOptionalIntegerSchedule index
   startingDateOptionalStringDate when the schedule starts
   startTimeOptionalStringTime when the schedule starts
   summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

senderDomainOptionalStringSender domain (for example, company.com).

If you do not specify the senderDomain or senderUserName, this is LXCA.{source_identifier}@{smtp_host} by default.

If you specify the senderDomain but not senderUserName, the format of the sender address is {LXCA_host_name}@{sender_domain} (for example, XClarity1@company.com).

senderUserNameOptionalStringSender name
subjectFormatOptionalStringEmail subject

For a description of fields that can be specified in the subject format, use GET /events/monitors?format=defaultFormat.

useSupportContactOptionalBooleanIndicates to use the email address that is defined for the support contact that is assigned to the device. This can be one of the following values.
  • true. Email forwarder uses the email address for the support contact.

  • false. (default) Email forwarder uses the email addresses that are specified in the recipients attribute.

The following example modifies an event forwarder for an email recipient.
{
"authenticationEmail": "none",
"connectionEmail": ["SSL"],
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY","STATUS_CHANGE","STATUS_UPDATE","GENERAL"],
"componentIDs": [],
"eventID": "",
"eventServices": ["none","support","user"],
"excludedEventIDs": "",
"negateFilter": false,
"sourceIDs": [],
"resourceGroupsUUIDs": [],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "UNKNOWN"
},
...,
{
"severity": "FATAL",
"type": "AUDIT"
}]
}
},
"forwardHidden": false,
"ignoreExcluded": false,
"ipAddress": "192.0.2.20",
"matchEverything": true,
"name": "Email Forwarder",
"port": "25",
"protocol": "email_alert",
"recipients": "user1@company.com",
"requestTimeout": 30,
"scheduler": {
"enabled": false,
"events": [],
"showSummary": false
},
"senderDomain": "company.com",
"senderUserName": "LXCA1",
"subjectFormat": "[[DeviceIPAddress]]-[[EventSeverity]]-[[EventMessage]]",
"useSupportContact": false
}
Table 3. FTP server.
AttributesRequired / OptionalTypeDescription
authPasswordChangedOptionalBooleanIndicates a request to change the password. This can be one of the following values.
  • true. Change the password

  • false. Do not change the password

authUserRequired if ftpAuthentication is set to RegularStringAuthentication user ID if authentication is used
authPasswordRequired if ftpAuthentication is set to RegularStringAuthentication password if authentication is used
characterEncodingOptionalStringCharacter set. This can be one of the following values.
  • UTF-8. (default)

  • Big5

charactersToRemoveOptionalStringSequence of characters to be removed from the file content
descriptionOptionalStringDescription for the event forwarder
enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values.
  • true. (default) The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ftpAuthenticationOptionalStringAuthentication type. This can be one of the following values.
  • Regular. Authenticates to the specified SMTP server using the specified user ID and password. This is the same as basic authentication.

  • None. (default) No authentication is used. This is the same as anonymous authentication.

ftpFileNameOptionalStringFile-name format to use for the file that contains the forwarded event. The default format is event_[[EventSequenceID]].txt.
Note
Each file contains information for a single event.
ftpPathRequiredStringPath on the remote FTP server where the file is to be uploaded
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

nameRequiredStringUser-defined name for the event forwarder. This name must be unique for all event forwarders.
outputFormatOptionalStringOutput format of the forwarded event

Text between double square brackets are the fields that which are replaced with actual values. For a description of each field, use GET /events/monitors?format=formatKeys.

portOptionalStringTCP/UDP port used for the connection. For FTP, this value is always 21.
protocolRequiredStringType of event forwarder. For FTP, this value is always ftp.
requestTimeoutOptionalIntegerAmount of time, in seconds, that an event forwarderhas to forward events before the request times out.

By default, the time-out value is 30 seconds.

schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-fowarding schedules
   calendarOptionalStringSchedule name
   daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

   endingDateOptionalStringDate when the schedule ends
   endTimeOptionalStringTime when the schedule ends
   idOptionalIntegerSchedule ID
   initialEndTimeOptionalString 
   initialStartTimeOptionalString 
   repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

   seriesIdOptionalIntegerSchedule index
   startingDateOptionalStringDate when the schedule starts
   startTimeOptionalStringTime when the schedule starts
   summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

The following example modifies an event forwarder for an FTP recipient.
{
"charactersToRemove": null,
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY", "GENERAL"],
"componentIDs": [],
"eventID": "",
"eventServices": [],
"excludedEventIDs": "",
"negateFilter": false,
"sourceIDs": [],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "AUDIT"
},
...,
{
"severity": "FATAL",
"type": "AUDIT"
}],
}
},
"forwardHidden": false,
"ftpAuthentication": "None",
"ftpFileName": "event_[[EventSequenceID]].txt",
"ftpPath": "lxca_events",
"ignoreExcluded": false,
"ipAddress": "192.0.2.30",
"matchEverything": true,
"name": "FTP Forwarder",
"port": "21",
"protocol": "ftp",
"requestTimeout": 30,
"scheduler": {
"enabled": false,
"events": [],
"showSummary": false
}
}
Table 4. REST Web Services.
AttributesRequired / OptionalTypeDescription
descriptionOptionalStringDescription for the event forwarder
enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values.
  • true. (default) The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server.
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

nameRequiredStringUser-defined name for the event forwarder. This name must be unique for all event forwarders.
outputFormatOptionalStringOutput format of the forwarded event

Text between double square brackets are the fields that which are replaced with actual values. For a description of each field, use GET /events/monitors?format=formatKeys.

portOptionalStringTCP/UDP port used for the connection. For REST Web Services, this value is always 80.
protocolRequiredStringType of event forwarder. For REST Web Services, this value is always rest.
requestTimeoutOptionalIntegerAmount of time, in seconds, that an event forwarder has to forward events before the request times out

By default, the time-out value is 30 seconds.

restAuthenticationOptionalStringAuthentication type. This can be one of the following values.
  • basic. Authenticates to the specified server using the specified user ID and password.

  • none. (default) No authentication is used.

restMethodOptionalStringREST method. This can be one of the following values.
  • POST. (default)
  • PUT
restPathOptionalStringResource path on which the forwarder is to post the events (for example, /rest/test).
restProtocolOptionalStringProtocol to use for forwarding events. This can be one of the following values.
  • HTTP
  • HTTPS. (default)
restRequestHeadersOptionalArray of stringsREST header to use for forwarding events
schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-fowarding schedules
   calendarOptionalStringSchedule name
   daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

   endingDateOptionalStringDate when the schedule ends
   endTimeOptionalStringTime when the schedule ends
   idOptionalIntegerSchedule ID
   initialEndTimeOptionalString 
   initialStartTimeOptionalString 
   repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

   seriesIdOptionalIntegerSchedule index
   startingDateOptionalStringDate when the schedule starts
   startTimeOptionalStringTime when the schedule starts
   summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

The following example modifies an event forwarder for a REST recipient.
{
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY", "GENERAL"],
"componentIDs": [],
"eventID": "",
"excludedEventIDs": "",
"eventServices": [],
"negateFilter": false,
"sourceIDs": [],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "AUDIT"
},
...,
{
"severity": "FATAL",
"type": "AUDIT"
}]
}
},
"forwardHidden": false,
"ignoreExcluded": false,
"ipAddress": "192.0.2.40",
"matchEverything": true,
"name": "REST Forwarder",
"port": "80",
"protocol": "rest",
"requestTimeout": 30,
"restAuthentication": "NONE",
"restMethod": "POST",
"restPath": "lxca_events",
"restProtocol": "HTTP",
"scheduler": {
"enabled": false,
"events": [],
"showSummary": false
}
}
Table 5. Remote SNMPv1 or SNMPv3 manager.
AttributesRequired / OptionalTypeDescription
authPasswordSetOptionalStringPassword string. This attribute is required if you specify authUser.
authProtocol StringAuthentication protocol. This can be one of the following value.
  • MD5
  • SHA

This attribute is required if you specify authUser.

authUserOptionalStringAuthentication user ID if authentication is used
communityOptionalString(SNMPv1 only) The community password that is sent with every SNMP request to the device.
contactNameOptionalStringUser-defined contact name for XClarity Administrator traps
descriptionOptionalStringDescription for the event forwarder
enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values.
  • true. (default) The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server.
locationOptionalStringLocation information, such as site, address, and geography
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

nameRequiredStringUser-defined name for the event forwarder . This name must be unique for all event forwarders.
outputFormatOptionalStringOutput format for the forwarded event
portOptionalStringTCP/UDP port used for the connection. For SNMP, this value is always 162.
privacyPasswordSetOptionalStringPrivacy password. This attribute is required if encryption is used.
privacyProtocolOptionalStringPrivacy protocol. This can be one of the following value.
  • AES
  • DES

This attribute is required if you specify privacyPassword.

protocolRequiredStringType of event forwarder . For SNMP, this can be one of the following values.
  • snmpv1. Events are forwarded to a remote SNMP manager using SNMPv1.

  • snmpv3. Events are forwarded to a remote SNMP manager using SNMPv3.

The trap formats for each event are defined in the lenovoMgrAlert.mib file.

requestTimeoutOptionalIntegerAmount of time, in seconds, that an event forwarder has to forward events before the request times out

By default, the time-out value is 30 seconds.

schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-fowarding schedules
   calendarOptionalStringSchedule name
   daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

   endingDateOptionalStringDate when the schedule ends
   endTimeOptionalStringTime when the schedule ends
   idOptionalIntegerSchedule ID
   initialEndTimeOptionalString 
   initialStartTimeOptionalString 
   repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

   seriesIdOptionalIntegerSchedule index
   startingDateOptionalStringDate when the schedule starts
   startTimeOptionalStringTime when the schedule starts
   summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

versionOptionalStringVersion of SNMP. This can be one of the following values.
  • V1

  • V3

The following example modifies an event forwarder for a SNMPv1 recipient.
{
"authPasswordSet": "false",
"authProtocol": "NONE",
"authUser": "",
"community": "public",
"contactName": "",
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY", "GENERAL"],
"componentIDs": ["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"],
"sourceIDs": ["FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "UNKNOWN"
},
...,
{
"severity": "FATAL",
"type": "SWITCH"
}]
}
},
"forwardHidden": false,
"id": "SNMPv1:0",
"ipAddress": "10.241.53.4",
"location": "",
"matchEverything": false,
"name": "SNMP Forwarder",
"port": "162",
"privacyPasswordSet": "false",
"privacyProtocol": "NONE",
"protocol": "snmpv1",
"requestTimeout": "500"
"scheduler": {
"enabled": false,
"events": []
},
"version": "v1"
}
Table 6. Syslog.
AttributesRequired / OptionalTypeDescription
communicationProtocolOptionalStringIdentifies the type of protocol that the syslog monitor uses to send messages. This can be one of the following values.
  • TCP
  • UDP. This is the default value.
descriptionOptionalStringDescription for the event forwarder
dateFormatOptionalStringFormat for the timestamp in the syslog. This can be one of the following values.
  • Default_Format. (default) The default format using local time, for example Fri Mar 31 05:57:18 EDT 2017.

  • GMT. International standard (ISO8601) for dates and times, for example 2017-03-31T05:58:20-04:00.

enableOptionalBooleanIndicates whether the event forwarder is enabled. This can be one of the following values.
  • true. (default) The event forwarder is enabled.

  • false. The event forwarder is disabled.

eventFilterRequiredObjectInformation about the types of events to forward
 filterRequiredObjectInformation about each event filter
  categoriesOptionalArray of stringsEvent categories. This can be one of the following values.
  • BULLETIN. Sends notification about new bulletins.
  • GENERAL. Sends notifications about audit events, based on the selected event classes and severities
  • STATUS_CHANGE. Sends notifications about changes in status.
  • STATUS_UPDATE
  • WARRANTY. Send notifications about warranties.
  componentIDsOptionalArray of stringsList of component IDs. If empty, all components are monitored.
  eventIDOptionalStringList of event IDs, separated by a comma, to be included
  eventServicesOptionalArray of stringsService type. This can be one or both of the following values.
  • none
  • support
  • user
  excludedEventIDsOptionalStringList of event IDs, separated by a comma, to be excluded
  negateFilterOptionalBooleanIndicates whether to exclude events that match the specified filter. This can be one of the following values.
  • true. Excludes (does not forward) events that match the specified filters.

  • false. Includes (forwards) events that match the specified filters.

  resourceGroupsUUIDsOptionalArray of stringsList of resource-group UUIDs to filter on
  sourceIDsOptionalArray of stringsList of source IDs. If empty, all sources are monitored.
  typeSeverityRequiredArray of objectsEvent severity and type.

If both sourceIDs and componentsIDs are empty, all events that match the typeSeverity filter are forwarded.

   severityRequiredStringEvent severity. This can be one of the following values.
  • Unknown. The severity is unknown.
  • Informational. Informational
  • Warning. User can decide if action is needed.
  • Minor. Action is needed, but the situation is not serious at this time.
  • Major. Action is needed now.
  • Critical. Action is needed now and the scope is broad (perhaps an imminent outage to a critical resource will result).
  • Fatal. A non-recoverable error has occurred.
   typeRequiredStringEvent type. This can be one of the following values.
  • Unknown
  • Audit
  • Cooling
  • Power
  • Disks. Storage
  • Memory
  • Processor
  • System. Rack or tower server
  • Test
  • Adaptor. Adapter card
  • Expansion. Expansion board
  • IOModule. Flex System switch
  • Blade. Flex System server
  • Switch
  • Other
  • Backplane
  • Chassis
  • Drive
  • ExtDrive. External drive
  • Fan
  • M2Adapter
  • M2Drive
  • OCP
  • PCIE
  • PSU
  • Retimer
  • Riser
  • 7MMDrive
  • Pump
forwardHiddenOptionalBooleanSpecifies whether to forward hidden events. This can be one of the following values.
  • true. Hidden events are forwarded.
  • false. (default) Hidden events are not forwarded.
ignoreExcludedOptionalBooleanSpecifies whether to disable the forwarding of excluded events. This can be one of the following values.
  • true. Ignores excluded events.

  • false. (default) Forwards excluded events.

ipAddressRequiredStringIPv4 or IPv6 address or hostname of the remote system that is the target to receive the events. For email, this is the SMTP server
nameRequiredStringUser-defined name for the event forwarder. This name must be unique for all event forwarders.
matchEverythingOptionalBooleanIndicates whether the action is to be run against all managed devices. This can be one of the following values.
  • true. The action is to be run against all managed devices

  • false. The action is run against only the managed device that is specified by the target attribute.

outputFormatOptionalStringOutput format of the forwarded event

Text between double square brackets are the fields that which are replaced with actual values. For a description of each field, use GET /events/monitors?format=formatKeys.

portOptionalStringTCP/UDP port used for the connection. For syslog, this value is always 514.
protocolRequiredStringType of event forwarder. For syslog, this value is always syslog.
requestTimeoutOptionalIntegerAmount of time, in seconds, that an event forwarderhas to forward events before the request times out

By default, the time-out value is 30 seconds.

schedulerOptionalObjectInformation about times and days when you want the specified events to be forwarded to this event forwarder
 enabledRequiredBooleanIndicates whether the schedule is enabled. This can be one of the following values.
  • true. The schedule is enabled. Only events that occur during the specified time slot are forwarded.

  • false. The schedule is disabled. Events are forwarded 24x7.

 eventsRequiredArray of objectsList of event-fowarding schedules
  calendarOptionalStringSchedule name
  daysOfWeekOptionalArray of stringsDays of the week. This can be one or more of the following values.
  • 1. Monday

  • 2. Tuesday

  • 3. Wednesday

  • 4. Thursday

  • 5. Friday

  • 6. Saturday

  • 7. Sunday

  endingDateOptionalStringDate when the schedule ends
  endTimeOptionalStringTime when the schedule ends
  idOptionalIntegerSchedule ID
  initialEndTimeOptionalString 
  initialStartTimeOptionalString 
  repeatableOptionalBooleanIndicates whether the schedule is recurring. This can be one of the following values.
  • true. The schedule is recurring.

  • false. The schedule occurs only once.

  seriesIdOptionalIntegerSchedule index
  startingDateOptionalStringDate when the schedule starts
  startTimeOptionalStringTime when the schedule starts
  summaryOptionalBoolean 
 showSummaryOptionalStringIndicates whether the schedule summary is enabled. The summary includes the time slot for schedule and which schedules are repeatable. This can be one of the following values.
  • true. The schedule summary is enabled.

  • false. The schedule summary is disabled.

The following example modifies an event forwarder for a syslog recipient.
{
"communicationProtocol": "UDP",
"dateFormat": "Default_Format",
"description": "",
"enable": "true",
"eventFilter": {
"filter": {
"categories": ["WARRANTY", "GENERAL"],
"componentIDs": [],
"eventID": "",
"eventServices": [],
"excludedEventIDs": "",
"negateFilter": false,
"sourceIDs": [],
"typeSeverity": [{
"severity": "INFORMATIONAL",
"type": "AUDIT"
},
...,
{
"severity": "FATAL",
"type": "AUDIT"
}]
}
},
"forwardHidden": false,
"ignoreExcluded": true,
"ipAddress": "192.0.2.60",
"matchEverything": true,
"name": "syslog_forwarder",
"port": "514",
"protocol": "syslog",
"requestTimeout": 30,
"scheduler": {
"enabled": false,
"events": [],
"showSummary": false
}
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
401UnauthorizedThe user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

None