Configuring alerts for events

Configure email alerts, post alerts to a URL, or enable SNMP traps for integrations with enterprise reporting systems.

Configure email alerts, post alerts to a URL (including a HipChat POST URL integration), or integrate with an enterprise reporting system by enabling SNMP trap alerts.

The OpsCenter Event Log page in the Activities section displays a continuously updated list of events and alerts. SNMP trap alerts display within the infrastructure monitoring solution for an organization.

Log levels

The following logging levels are available for Cassandra, DataStax Enterprise, and OpsCenter events from most (DEBUG) to least (ALERT) verbose, and from lowest (DEBUG) to highest (ALERT) severity:
  • DEBUG (0)
  • INFO (1)
  • WARN (2)
  • ERROR (3)
  • CRITICAL (4)
  • ALERT (5)

Alerts

Alerts are disabled by default and must be explicitly configured. Alerts can be sent remotely by email, through HTTP POST to a selected URL, or through SNMP traps sent to an enterprise monitoring solution. All alerts contain information about each captured event. Optionally, you can configure OpsCenter to send alerts for selected levels of events or specific clusters. Alerts are triggered by events from the OpsCenter API or UI only; not by events triggered from the command line. For instance, a nodetool move operation submitted from the command line does not trigger an alert. However, a move operation launched using the Nodes > List View > Other Actions > Move option in the OpsCenter UI does trigger an alert.

Table 1. Alerts fields
Field Description Example
api_source_ip IP that originally sent the request through an API call. 67.169.50.240
target_node Destination of a STREAMING action. 10.1.1.11
event_source Component that caused the event. OpsCenter (i.e., restart, start)
user OpsCenter user that caused the event. opscenter_user
time Normal timestamp for the event. 1311025650414527
action Type of event. 20
subject Customizable subject line of the email alert. [WARN] OpsCenter Event - Node reported as being down: 127.0.0.1
message Description of the event. Garbage Collecting node 10.1.1.13
level Numerical code for the log level. 1
source_node Node where the event originated. 10.1.1.13
cluster Name of the cluster where the event originated. DSEProdCluster
level_str Logging level of the event. INFO