Alert handlers can be configured with the dsconfig tool. PingDirectory servers support Java Management Extensions (JMX)Java Management Extensions (JMX)JMX Java technology that provides tools for managing and monitoring applications, devices, system objects, and service-oriented networks., SMTP, and SNMP. Use the --help option for a list of configuration options. The following is a sample command to create and enable an SMTP Alert handler from the command line:

$ bin/dsconfig create-alert-handler \
  --handler-name "SMTP Alert Handler" \
  --type smtp \
  --set enabled:true \
  --set "" \
  --set "" \
  --set "message-subject:Directory Admin Alert \%\%alert-type\%\%" \
  --set "message-body:Administrative alert:\\n\%\%alert-message\%\%"