GlenNicholls / unraid_parity_scripter

Unraid user script that supports specifying Python functions to call during parity check start/stop stages
MIT License
0 stars 0 forks source link

Using "alert" notification fails #10

Closed GlenNicholls closed 1 year ago

GlenNicholls commented 1 year ago

Using the "alert" notification fails:

root@server:~# /usr/local/emhttp/webGui/scripts/notify -e 'Parity event' -s 'this subject' -d 'short description' -i alert -m 'some message'
ssmtp: Authorization failed (535 5.7.8  https://support.google.com/mail/?p=BadCredentials f12-20020a02cacc000000b0041ac54cbc60sm505123jap.56 - gsmtp)
root@server:~# /usr/local/emhttp/webGui/scripts/notify
notify [-e "event"] [-s "subject"] [-d "description"] [-i "normal|warning|alert"] [-m "message"] [-x] [-t] [-b] [add]
  create a notification
  use -e to specify the event
  use -s to specify a subject
  use -d to specify a short description
  use -i to specify the severity
  use -m to specify a message (long description)
  use -l to specify a link (clicking the notification will take you to that location)
  use -x to create a single notification ticket
  use -r to specify recipients and not use default
  use -t to force send email only (for testing)
  use -b to NOT send a browser notification
  all options are optional

notify init
  Initialize the notification subsystem.

notify smtp-init
  Initialize sendmail configuration (ssmtp in our case).

notify get
  Output a json-encoded list of all the unread notifications.

notify archive file
  Move file from 'unread' state to 'archive' state.
GlenNicholls commented 1 year ago

This occurred because I had alert and warning set to trigger email notifications, but didn't fully set up the smtp server.