#!/bin/bash # Source the common Slack alert functions source /bigscoots/includes/common.sh # Extract message content from the mdadm alert message="MDADM Alert on $(hostname): $@" # Send the alert using the existing send_slack_alert function send_slack_alert "#hardware" ":warning:" "MDADM Alert" "N/A" "$message"