Email notification about UPS power supply

Got a suggestion for future Synology products? Suggest it here!
We'll forward your idea to our RD department.

Re: Email notification about UPS power supply

Postby synologyorqnap » Thu Aug 26, 2010 5:07 pm

I wonder how useful this would really be. It would require battery on the rest of the network.
synologyorqnap
Student
Student
 
Posts: 70
Joined: Mon Aug 02, 2010 10:08 pm

Re: Email notification about UPS power supply

Postby tomb1605 » Mon Aug 30, 2010 5:22 pm

Hi all,

there is a simple workaround:

create a php File: (in my case i use the root folder)

Code: Select all
vi /root/sendmail.php


PHP-Code:
Code: Select all
#!/usr/bin/php
<?php
//The message
$message= "UPS Sends DS in Safemode";

// if message has more than 70 characters, then you should use wordwrap()
// $message= wordwrap($message, 70);

// Send
mail('user@yourdomain.com', 'DS->UPS', $message);
?>


make executeable:
Code: Select all
chmod +x /root/sendmail.php


Now you need to customise the /usr/syno/bin/synoups:

Code: Select all
vi /usr/syno/bin/synoups


under row:

Code: Select all
SYSLOG "UPS going to stop all services and umount all volumes."


and over row:

Code: Select all
killall -9 mplayer


insert text:
Code: Select all
SYSLOG "SSC send mail"
./root/sendmail.php


result of this part should look like:

Code: Select all
SYSLOG "UPS going to stop all services and umount all volumes."
SYSLOG "SSC send mail"
./root/sendmail.php
killall -9 mplayer


furthermore it is useful to create an support call @ synology to get this function as standard.

regards
Tom
tomb1605
I'm New!
I'm New!
 
Posts: 2
Joined: Mon Aug 30, 2010 5:06 pm

Re: Email notification about UPS power supply

Postby Bigjim » Wed Sep 01, 2010 3:52 pm

Thank you very much Tomb.
I will test it very soon :D

Please mister Synology, thanks to add this to the new 3.0 version :D :D :D :D :D :D
DS207+ / DSM 3.0 1607 / iOS Audio Station Application
Xtreamer - Popcorn - Multi-room audio addict
Bigjim
Trainee
Trainee
 
Posts: 14
Joined: Mon Sep 21, 2009 9:29 am

Re: Email notification about UPS power supply

Postby robert_ta » Fri Oct 22, 2010 9:41 pm

robert_ta
I'm New!
I'm New!
 
Posts: 2
Joined: Wed Mar 10, 2010 9:53 pm

Notification email needs more settings !

Postby Montago » Sat Jan 08, 2011 1:55 am

I've setup my Diskstation to send notification emails when serious events occur...

I've also set it up to backup to a local drive every day at 00:00:00 AM

I find it rather unnecessary to receive an email saying that the backup has completed successfully...

I need settings ! - coz i dont want to turn off email notification - they are nice when good times turn bad ;-)
Montago
Novice
Novice
 
Posts: 57
Joined: Thu Aug 26, 2010 5:47 pm

Re: Notification email needs more settings !

Postby TerrorDBN » Tue Jan 11, 2011 6:54 am

Montago wrote:I've setup my Diskstation to send notification emails when serious events occur...
I've also set it up to backup to a local drive every day at 00:00:00 AM
I find it rather unnecessary to receive an email saying that the backup has completed successfully...
need settings ! - coz i dont want to turn off email notification - they are nice when good times turn bad ;-)


I have this exact same problem. How do I turn off notifications for a successfull backup?

Terror
TerrorDBN
I'm New!
I'm New!
 
Posts: 1
Joined: Tue Jan 11, 2011 6:52 am

Re: Notification email needs more settings !

Postby Stu » Tue Jan 11, 2011 5:53 pm

I would also like an email automatically sent to a user/account holder that would specify the external URL rather than just the internal IP address. :D
Stu.

DS 209j (DSM 3.0 - 1354)

2 x 2TB Western Digital WD20EARS-00M, 64MB Cache, Raid 1
Stu
Student
Student
 
Posts: 63
Joined: Wed Mar 11, 2009 2:02 am

Re: Notification email needs more settings !

Postby Kjeldsen » Tue Jan 11, 2011 8:25 pm

+1 for more advanced email notification settings.
DS210j | DSM 4.1-2647 | 1x 3TB WD Caviar Green WD30EZRX
User avatar
Kjeldsen
Student
Student
 
Posts: 75
Joined: Mon Jan 11, 2010 11:53 am
Location: Aalborg, Denmark

Re: Email notification about UPS power supply

Postby mitzone » Fri Mar 18, 2011 7:28 pm

+1
mitzone
Trainee
Trainee
 
Posts: 17
Joined: Sat Jan 29, 2011 2:42 pm

Re: Notification email needs more settings !

Postby Dennis2020 » Sun Apr 17, 2011 12:00 am

+1 for more advanced notification settings
Dennis2020
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Mar 13, 2011 11:57 pm

Re: Notification email needs more settings !

Postby derok7 » Tue Apr 19, 2011 5:17 am

+1 - definitely need advanced notification control.
derok7
I'm New!
I'm New!
 
Posts: 7
Joined: Thu Jan 22, 2009 9:15 pm

Re: Notification email needs more settings !

Postby chuckstar76 » Tue Apr 19, 2011 11:47 am

+1 This would be a much needed improvement!
chuckstar76
Trainee
Trainee
 
Posts: 13
Joined: Mon Feb 21, 2011 3:23 pm

Re: Email notification about UPS power supply

Postby Valith » Fri Sep 23, 2011 10:34 am

+1

I would like to be able to configure for all possible notifications how to be notified..
e.g. options :arrow: log only :arrow: +e-mail :arrow: +SMS
(e.g. some people are interested about an e-mail when a backup is succesful. Others are only interested when it failed)
Synology DS410 (volume1: 3x2TB = RAID5 volume2: 1x2TB) & DS207 128MB (2x500GB RAID1)
Note: DS207 128MB = PowerPC CPU, not a Marvell CPU
2x 500GB 7200rpm 16MB SATA2 Seagate Disks (ST3500830AS)
4x 2TB WD Caviar Green Intellipower 64MB SATA2 (WD20EARS-00MVWB0)
UPS: APC BE700G-GR
Valith
Beginner
Beginner
 
Posts: 23
Joined: Mon May 21, 2007 10:05 pm

Re: Email notification about UPS power supply

Postby ankushs » Mon Oct 03, 2011 5:16 pm

+1

Would really find this very useful if the DS sends a mail when UPS is on battery & it becomes a standard feature which users can enable/disable.
ankushs
I'm New!
I'm New!
 
Posts: 8
Joined: Mon Oct 03, 2011 12:46 pm

Re: Notification email needs more settings !

Postby gletts » Sat Dec 31, 2011 3:48 pm

+1
Ability to fine tune notifications. When, which ones etc.
Especially to turn off "successful" events. I want to be notified about failures and things I need to respond to.
gletts
I'm New!
I'm New!
 
Posts: 4
Joined: Sat Dec 31, 2011 4:07 am

PreviousNext

Return to Feature Requests & Product Improvement Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests