Page 1 of 1

Feature request - Mail alerts

PostPosted: Tue Apr 15, 2014 12:36 pm
by kevin39
Hi,
Do you plan to add some mail alerts ?

Some missing alerts :
- Low space disk
- Update available (of course, subscription to this forum may be enough)
- Backup result (succeeded/failed)
- Cron execution and its log

I saw a mail script is available (/usr/bin/mail) but it doesn't seems to work properly and it require ssl. May be using our ISP's smtp will be easier ?

Anyway, in fact, I've a daily backup and in case of failure I will not get a warning... That's why this feature is missing me :)

Best regards

Re: Feature request - Mail alerts

PostPosted: Tue Apr 15, 2014 2:37 pm
by Jocko
Hi Keyvin,

Indeed we included this script with version 15.0 but currently it is not implemented in the firmware GUI.

This script could be used later to add these mail alerts.

Few remarks :
- This script can not be used directly with cron which uses sendmail (so you must set this feature and a e-mail for the root user).
About cron log, there is already a menu to read it. Of course, to get some outputs on it, you must add some echo toward the log in your script or redirect the standard output of your shell command.
- Some ISP, block the not encrypted connections (smtp server on port 25) because no authentication is required in this case (It is this way that use the spammers to send their massive mails). So see what is the smtp server and its port used by your ISP.
- About update warning : currently at each release, the members already receive a mail (but that means that their e-mail is still available on the board ;) :tapfoot ) and in the other settings menu, you can enable the automatic check for new firmware (if you don't have the last version, an alert is displayed in the main Information menu). So nothing to do there

Re: Feature request - Mail alerts

PostPosted: Wed Apr 16, 2014 5:53 am
by kevin39
Ok, thank you :)

Re: Feature request - Mail alerts

PostPosted: Wed Apr 16, 2014 11:59 am
by Jocko
Indeed we included this script with version 15.0 but currently it is not implemented in the firmware GUI.


Yesterday evening, I worked about it and for next release 15.3:
- There will be a nuw menu to set the mail feature,
- At least, mail send for NAS booting (boot.log content), usb disk mount/umount events and backup events

Note : also a new mail script version to be used easier in the cron job command or shell script

Re: Feature request - Mail alerts

PostPosted: Wed Apr 16, 2014 4:46 pm
by kevin39
Oh, that's a great news :)

Re: Feature request - Mail alerts

PostPosted: Wed Apr 16, 2014 6:04 pm
by Jocko
Here the new menu :
mailer.jpg

Re: Feature request - Mail alerts

PostPosted: Thu Apr 24, 2014 5:02 pm
by Jocko
So the job is ended for version 15.3.

The following e-mail notification are now implemented:
- NAS booting or wake up (WOL)
- NAS standby (WOL)
- Temp guard alert
- USB disk plugged in/out
- Backup (completed or failed to start)

for example, you will receive this e-mail type for a backup
(subject:)
NAS(Kappa), Completed backup
(message:)
Following backup ended:
Source: /share/1000/fvdw/15.0
Target: /share/1000/192.168.1.100-nfs-Travail-2-FDEP
Started: 2014-04-24_17:46:02
Ended: 2014-04-24 17:46:06

Read the log file for details:
file://Kappa/cronjobs/15.0_2014-04-24_17-46-02.log to check if some
synchronization errors could be occured

Re: Feature request - Mail alerts

PostPosted: Fri Apr 25, 2014 6:29 pm
by kevin39
Good news! I'm happy to get this feature :)