Browse Source

slack

pull/3051/head
Daniel Gibbs 5 years ago
parent
commit
1f7d11588f
  1. 2
      lgsm/functions/alert_rocketchat.sh
  2. 8
      lgsm/functions/alert_slack.sh

2
lgsm/functions/alert_rocketchat.sh

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

8
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}"
}
}
]

Loading…
Cancel
Save