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