Browse Source

slack changes

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
179cfb74cd
  1. 11
      lgsm/functions/alert_slack.sh

11
lgsm/functions/alert_slack.sh

@ -21,14 +21,21 @@ json=$(cat <<EOF
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "*${servername}*" "text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${alertbody}"
} }
}, },
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "*${alertemoji} ${alertsubject} ${alertemoji}* \n ${alertbody}" "text": "*${servername}*"
} }
}, },
{ {

Loading…
Cancel
Save