]> arthur.barton.de Git - netdata.git/commitdiff
add recipient email to log
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 8 Sep 2016 23:26:08 +0000 (02:26 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 8 Sep 2016 23:26:08 +0000 (02:26 +0300)
plugins.d/alarm-notify.sh

index e1f1a7e97d3f2ab7d36b98b0018744189bdbb9ee..ca70c64b949edc44bfd022329d7025855417b149 100755 (executable)
@@ -180,10 +180,10 @@ send_email() {
 
         if [ $? -eq 0 ]
         then
-            echo >&2 "${me}: Sent notification email for ${status} on '${chart}.${name}'"
+            echo >&2 "${me}: Sent notification email for ${status} on '${chart}.${name}' to '${to_email}'"
             return 0
         else
-            echo >&2 "${me}: FAILED to send notification email for ${status} on '${chart}.${name}'"
+            echo >&2 "${me}: FAILED to send notification email for ${status} on '${chart}.${name}' to '${to_email}'"
             return 1
         fi
     fi