Skip to content

Commit

Permalink
Merge pull request #2151 from pkosanam/NR-182195-postfix-alert-update
Browse files Browse the repository at this point in the history
NR-182195 Postfix Alert Policy - Update
  • Loading branch information
sarahkitten authored Jan 9, 2024
2 parents 517a7b0 + 80df396 commit 2e73d10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Name of the alert
name: SMTPD Connection Lost (%)
name: Bounced Emails

# Description and details
description: |+
This alert is triggered when the lost connections exceed 5%.
This alert is triggered when bounced emails exceed 5.
# Type of alert
type: STATIC

# NRQL query
nrql:
query: "SELECT (latest(PostfixSMTPDconnectionLost.value) * 100) / (SELECT latest(value) FROM PostfixSMTPDconnection) AS '(%) connection lost' FROM PostfixSMTPDconnectionLost"
query: "SELECT latest(bounced) As 'Bounced - failed emails' FROM `unixMonitor:postfix_messagesTotalRecords`"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Name of the alert
name: SMTPD Connection Timed Out (%)
name: SMTP Authentication Fails

# Description and details
description: |+
This alert is triggered when the connection timeout exceeds 5%.
This alert is triggered when SMTP authentication fails exceed 5.
# Type of alert
type: STATIC

# NRQL query
nrql:
query: "SELECT (latest(PostfixSMTPDtimedOut.value) * 100) / (SELECT latest(value) FROM PostfixSMTPDconnection) AS '(%) connection timed out' FROM PostfixSMTPDtimedOut"
query: "SELECT latest(smtp_authfailed_count) FROM `unixMonitor:postfix_smtp_authFailed_today`"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE
Expand Down

0 comments on commit 2e73d10

Please sign in to comment.