@cryptotaxi247 / netdata-1 / commits / 118392474

Fixed trivial mistake in AWS SNS command.

Austin S. Hemmelgarn committed Jul 23, 2018 at 09:44 UTC 118392474fca3bc621ee606d378aaea19ef02688
1 file changed +1 -1
plugins.d/alarm-notify.sh
+1 -1
@@ -1830,7 +1830,7 @@ send_awssns() {
1830 for target in ${targets} ; do
1831 # Extract the region from the target ARN. We need to explicitly specify the region so that it matches up correctly.
1832 region="$(echo ${target} | cut -f 4 -d ':')"
1833 - ${aws} --region "${region}" --subject "${host} ${status_message} - ${name//_/ } - ${chart}" --message "${message}" --target-arn ${target} &>/dev/null
1833 + ${aws} sns publish --region "${region}" --subject "${host} ${status_message} - ${name//_/ } - ${chart}" --message "${message}" --target-arn ${target} &>/dev/null
1834 if [ $? = 0 ]; then
1835 info "sent Amazon SNS notification for: ${host} ${chart}.${name} is ${status} to '${target}'"
1836 sent=$((sent + 1))