Browse Source

servername

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

2
lgsm/functions/alert_rocketchat.sh

@ -17,7 +17,7 @@ json=$(cat <<EOF
"text": "*${alertemoji} ${alertsubject} ${alertemoji}* + \n ${alertbody}", "text": "*${alertemoji} ${alertsubject} ${alertemoji}* + \n ${alertbody}",
"attachments": [ "attachments": [
{ {
"title": "Linuxgsm Alert", "title": "${servername}",
"text": "Hostname: ${HOSTNAME}", "text": "Hostname: ${HOSTNAME}",
"color": "#36a64f", "color": "#36a64f",
"fields": [ "fields": [

2
lgsm/functions/alert_slack.sh

@ -21,7 +21,7 @@ json=$(cat <<EOF
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "*LinuxGSM Alert*" "text": "*${servername}*"
} }
}, },
{ {

Loading…
Cancel
Save