---
title: Configure alert handlers
description: You can configure alert handlers with the dsconfig tool.
component: pingdirectory
version: 9.3
page_id: pingdirectory:pingdatametrics_server_administration_guide:pd_met_config_alert_handlers
canonical_url: https://docs.pingidentity.com/pingdirectory/9.3/pingdatametrics_server_administration_guide/pd_met_config_alert_handlers.html
revdate: September 13, 2023
---

# Configure alert handlers

You can configure alert handlers with the `dsconfig` tool.

PingDirectory servers support JMX, 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:

```shell
$ bin/dsconfig create-alert-handler \
  --handler-name "SMTP Alert Handler" \
  --type smtp \
  --set enabled:true \
  --set "sender-address:alerts@example.com" \
  --set "recipient-address:administrators@example.com" \
  --set "message-subject:Directory Admin Alert \%\%alert-type\%\%" \
  --set "message-body:Administrative alert:\\n\%\%alert-message\%\%"
```
