Daniel Gibbs
4 years ago
No known key found for this signature in database
GPG Key ID: 2EBB36015C6D78E2
2 changed files with
16 additions and
16 deletions
-
lgsm/functions/alert_discord.sh
-
lgsm/functions/alert_rocketchat.sh
|
|
@ -39,23 +39,23 @@ json=$(cat <<EOF |
|
|
|
"inline": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Server IP", |
|
|
|
"value": "${alertip}:${port}", |
|
|
|
"name": "Version", |
|
|
|
"value": "${alertversion}", |
|
|
|
"inline": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Hostname", |
|
|
|
"value": "${HOSTNAME}", |
|
|
|
"name": "Country", |
|
|
|
"value": "${country}", |
|
|
|
"inline": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Version", |
|
|
|
"value": "${alertversion}", |
|
|
|
"name": "Server IP", |
|
|
|
"value": "${alertip}:${port}", |
|
|
|
"inline": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
"name": "Country", |
|
|
|
"value": "${country}", |
|
|
|
"name": "Hostname", |
|
|
|
"value": "${HOSTNAME}", |
|
|
|
"inline": true |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
@ -26,23 +26,23 @@ json=$(cat <<EOF |
|
|
|
}, |
|
|
|
{ |
|
|
|
"short": true, |
|
|
|
"title": "Server IP", |
|
|
|
"value": "${alertip}:${port}" |
|
|
|
"title": "Version", |
|
|
|
"value": "${alertversion}" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"short": true, |
|
|
|
"title": "Hostname", |
|
|
|
"value": "${HOSTNAME}" |
|
|
|
"title": "Country", |
|
|
|
"value": "${country}" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"short": true, |
|
|
|
"title": "Version", |
|
|
|
"value": "${alertversion}" |
|
|
|
"title": "Server IP", |
|
|
|
"value": "${alertip}:${port}" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"short": true, |
|
|
|
"title": "Country", |
|
|
|
"value": "${country}" |
|
|
|
"title": "Hostname", |
|
|
|
"value": "${HOSTNAME}" |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|