question

pramod.dba31_92912 avatar image
pramod.dba31_92912 asked Erick Ramirez answered

How do I add the DC to the email alert from OpsCenter?

Hi

How can I add Datacenter Information for the email alerts from opscenter.

opscenter
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

smadhavan avatar image
smadhavan answered smadhavan edited

@pramod.dba31_92912, datacenter is not available (yet) as an attribute/field to be included in the alert message. You should already have the node and source_node to derive the node from which the alert situation is triggered. You could refer to available fields at this OpsCenter documentation.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered

It is not possible to add the DC to the email template used by OpsCenter.

The only available keys are:

  • node
  • cluster
  • datetime
  • level_str (DEBUG, INFO, WARN, ERROR, CRITICAL, ALERT)
  • message
  • target_node
  • event_source
  • success
  • api_source_ip
  • user
  • source_node

See Enabling SMTP email alerts for details. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.