Feature request - Mail alerts

Feature request - Mail alerts

Postby kevin39 » Tue Apr 15, 2014 12:36 pm

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
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: Feature request - Mail alerts

Postby Jocko » Tue Apr 15, 2014 2:37 pm

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Feature request - Mail alerts

Postby kevin39 » Wed Apr 16, 2014 5:53 am

Ok, thank you :)
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: Feature request - Mail alerts

Postby Jocko » Wed Apr 16, 2014 11:59 am

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Feature request - Mail alerts

Postby kevin39 » Wed Apr 16, 2014 4:46 pm

Oh, that's a great news :)
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: Feature request - Mail alerts

Postby Jocko » Wed Apr 16, 2014 6:04 pm

Here the new menu :
mailer.jpg
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Feature request - Mail alerts

Postby Jocko » Thu Apr 24, 2014 5:02 pm

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
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Feature request - Mail alerts

Postby kevin39 » Fri Apr 25, 2014 6:29 pm

Good news! I'm happy to get this feature :)
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France


Return to Development

Who is online

Users browsing this forum: Bing Bot and 18 guests