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

+ 1 - 1
lgsm/functions/alert_rocketchat.sh

@@ -27,7 +27,7 @@ json=$(cat <<EOF
 					"short": true,
 					"title": "Server IP:",
 					"value": "${alertip}:${port}"
-				}
+				},
 				{
 					"short": true,
 					"title": "Hostname:",

+ 2 - 6
lgsm/functions/alert_slack.sh

@@ -35,7 +35,7 @@ json=$(cat <<EOF
 					"type": "section",
 					"text": {
 						"type": "mrkdwn",
-						"text": "${alertbody}"
+						"text": "${alertbody} \n More info: ${alerturl}"
 					}
 				},
 				{
@@ -51,10 +51,6 @@ json=$(cat <<EOF
 						{
 							"type": "mrkdwn",
 							"text": "*Server IP:* \n ${alertip}:${port}"
-						},
-						{
-							"type": "mrkdwn",
-							"text": "*Hostname:* \n ${HOSTNAME}"
 						}
 					]
 				},
@@ -65,7 +61,7 @@ json=$(cat <<EOF
 					"type": "section",
 					"text": {
 						"type": "mrkdwn",
-						"text": "Hostname: ${HOSTNAME} / More info: ${alerturl}"
+						"text": "*Hostname:* ${HOSTNAME}"
 					}
 				}
 			]