Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update postfix-monitoring-integration.mdx
Commands updated to fix issue with PostfixDown
  • Loading branch information
ASchneider-GitHub authored Aug 14, 2025
commit 44e506d9a29d9207095539bb18806a106a9b0bbe
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ Complete the following steps to set up the Postfix integration:
#check if Postfix service is up.
- event_type: PostfixUp
commands:
- run: echo "value:$(systemctl status postfix | grep 'Active':' active' | wc -l)"
- run: echo "value:$(systemctl status postfix | grep 'Active:' | grep ' active' | wc -l)"
split_by: ':'

#check if Postfix service is down.
- event_type: PostfixDown
commands:
- run: echo "value:$(systemctl status postfix | grep 'Active':' active' | wc -l)"
- run: echo "value:$(systemctl status postfix | grep 'Active:' | grep -v ' active' | wc -l)"
split_by: ':'

#Read the grand totals messages by using the below script.
Expand Down
Loading