Commit 33dfbece authored by Kevin Yung's avatar Kevin Yung
Browse files

Rectification d'une typo + début test envoi de mail

parent 08f75dff
...@@ -18,7 +18,7 @@ dates=$(jq --raw-output ".result[] | .lastSeenAt" .gateways.json) ...@@ -18,7 +18,7 @@ dates=$(jq --raw-output ".result[] | .lastSeenAt" .gateways.json)
date=() date=()
date=($dates) date=($dates)
state=() state=()
full_date==() full_date=()
d=() d=()
for (( i=0; i<${#date[@]}; i++ )) for (( i=0; i<${#date[@]}; i++ ))
do do
...@@ -7,10 +7,13 @@ ...@@ -7,10 +7,13 @@
# TODO /bin/bash # TODO /bin/bash
# TODO get TO for the .config.json # TODO get TO for the .config.json
TO="" #TO=""
SUBJECT="Monitoring Report" SUBJECT="Monitoring Report"
CONTENT_TYPE="Content-type: text/html" CONTENT_TYPE="Content-type: text/html"
mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.gateways.html #mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.gateways.html
mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.devices.html #mail -a "$CONTENT_TYPE" -s "$SUBJECT" -u monitoring $TO <.devices.html
#mailx -a "$CONTENT_TYPE" -s "$SUBJECT" <.gateways.html "$TO"
mail -s "Test"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment