I want to implement this guide: https://ntfy.sh/docs/examples/#ssh-login-alerts for the Unraid webGui. SSHD is PAM-aware, so it's trivial to implement notifications for SSH login. However, the webGui does not seem to be PAM-aware. Is there an alternative way to publish a login (attempt) notification to an ntfy topic?
Edit: Furthermore, is there also a good way to add notifications for SMB authentication?
Also, a link for the more general documentation, including various examples with different methods for publishing messages in different languages, including HTTP, JavaScript, and PHP:
https://ntfy.sh/docs/publish/