Daniel Gibbs пре 5 година
родитељ
комит
179cfb74cd
1 измењених фајлова са 14 додато и 7 уклоњено
  1. 14 7
      lgsm/functions/alert_slack.sh

+ 14 - 7
lgsm/functions/alert_slack.sh

@@ -17,6 +17,20 @@ json=$(cat <<EOF
 		{
 			"color": "#36a64f",
 			"blocks": [
+			{
+				"type": "section",
+				"text": {
+					"type": "mrkdwn",
+					"text": "*${alertemoji} ${alertsubject} ${alertemoji}*"
+				}
+			},
+			{
+				"type": "section",
+				"text": {
+					"type": "mrkdwn",
+					"text": "${alertbody}"
+				}
+			},
 				{
 					"type": "section",
 					"text": {
@@ -24,13 +38,6 @@ json=$(cat <<EOF
 						"text": "*${servername}*"
 					}
 				},
-				{
-					"type": "section",
-					"text": {
-						"type": "mrkdwn",
-						"text": "*${alertemoji} ${alertsubject} ${alertemoji}* \n ${alertbody}"
-					}
-				},
 				{
 					"type": "divider"
 				},