expanded tags, added hostname to message

This commit is contained in:
Peter Wood
2023-09-01 11:24:56 +00:00
parent c0e2cd351e
commit 588dc4be2e

View File

@@ -8,8 +8,8 @@
if [ "${PAM_TYPE}" = "open_session" ]; then
curl \
-H prio:high \
-H tags:warning \
-d "SSH login: ${PAM_USER} from ${PAM_RHOST}" \
-H prio:urgent \
-H tags:warning,ssh,login,${HOSTNAME} \
-d "SSH login [${HOSTNAME}] user ${PAM_USER} from ${PAM_RHOST}" \
https://notify.peterwood.rocks/lab
fi