Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Projets-INFO4
20-21
18
chirpstack-monitoring
Commits
33dfbece
Commit
33dfbece
authored
Mar 09, 2021
by
Kevin Yung
Browse files
Rectification d'une typo + début test envoi de mail
parent
08f75dff
Changes
2
Hide whitespace changes
Inline
Side-by-side
reports/get_id_gatewaysChange.sh
View file @
33dfbece
...
@@ -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
...
...
reports/sendmail_reports.sh
View file @
33dfbece
...
@@ -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
=
"XX.XX@univ-grenoble-alpes.fr YY.YY@univ-grenoble-alpes.fr"
#TO="XX.XX@univ-grenoble-alpes.fr YY.YY@univ-grenoble-alpes.fr"
TO
=
"kevyung24@gmail.com"
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"
kevyung24@gmail.com
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment