scubieman Posted July 8, 2019 Share Posted July 8, 2019 Trying to get notifications when UPS for unraid goes onto battery backup. The internet/router/switch ETC is all battery backup as well. i did a simulated test and internet stayed home and able to connect to server still. However no notifications but other notifications show up. It does show "On Battery in the UPS settings" Here is my UPS make/model http://www.sizemyups.com/specs/1011/90000659/BR/0/ Quote Link to comment
Frank1940 Posted July 8, 2019 Share Posted July 8, 2019 First, I would suggest a test to see if that UPS/apcupsd work together. Set the 'Time on battery before shutdown (seconds)' to 30 and pull the plug and see if the server gets shutdown. Second, does Unraid actually send out e-mail? You can test this: Settings >>>> Notifications >>>> SMPT Settings and click on the 'TEST' button. Now in an actual power failure situation, you will have to have your network stay up and running until after the server has shutdown! You might be surprised at how many folks don't have the modem (or the router, or the switch) on a UPS! Quote Link to comment
scubieman Posted July 8, 2019 Author Share Posted July 8, 2019 2 minutes ago, Frank1940 said: First, I would suggest a test to see if that UPS/apcupsd work together. Set the 'Time on battery before shutdown (seconds)' to 30 and pull the plug and see if the server gets shutdown. Second, does Unraid actually send out e-mail? You can test this: Settings >>>> Notifications >>>> SMPT Settings and click on the 'TEST' button. Now in an actual power failure situation, you will have to have your network stay up and running until after the server has shutdown! You might be surprised at how many folks don't have the modem (or the router, or the switch) on a UPS! I have it set to 50% of ups or 10 minutes left. These notifications only send when the server shuts down? the SMTP works fine and sends email. I double checked my internet and it stays home when unplugged. Quote Link to comment
Frank1940 Posted July 8, 2019 Share Posted July 8, 2019 I suggested that setting so you can see if it sends the notification on a power outage. (With your current settings, you could take a half-hour on battery before the shutdown started. ) I am pretty sure it only sends the message as a part of the actual shutdown sequence. So to check you will have to simulate a power outage, shutdown and let it finish. (By the way, this is the only way, you can be certain that it is actually going to work properly when the REAL thing happens!) Quote Link to comment
scubieman Posted July 8, 2019 Author Share Posted July 8, 2019 Shoot. I was hoping notification before shutdown and on battery Quote Link to comment
Michael_P Posted July 9, 2019 Share Posted July 9, 2019 (edited) I get a notification immediately of the power loss, then another when the power is restored. Will also get a notification if the timer elapses and it sends the server into shutdown Quote Event: Unraid Server Alert Subject: UPS Alert Description: Power failure on UPS URServer. Running on batteries. Importance: alert Quote Event: Unraid Server Alert Subject: UPS Alert Description: Power has returned on UPS URServer... Importance: alert Edited July 9, 2019 by Michael_P Text of email added Quote Link to comment
scubieman Posted July 9, 2019 Author Share Posted July 9, 2019 Can you compare your settings to mine? I really would love this to work! Quote Link to comment
Michael_P Posted July 9, 2019 Share Posted July 9, 2019 4 hours ago, scubieman said: Can you compare your settings to mine? I really would love this to work! Well, you don't have any of the email notification boxes checked - I'd start there 1 Quote Link to comment
scubieman Posted July 10, 2019 Author Share Posted July 10, 2019 I enabled still not working sadly. I can send test email but after wards it shows below.. Quote Link to comment
Michael_P Posted July 10, 2019 Share Posted July 10, 2019 Are you getting the notifications in your browser? Quote Link to comment
scubieman Posted July 10, 2019 Author Share Posted July 10, 2019 17 minutes ago, Michael_P said: Are you getting the notifications in your browser? negative. none. nothing. I believe i got the unraid update. I also believe i got other ones. but not the power one at all. Quote Link to comment
Frank1940 Posted July 10, 2019 Share Posted July 10, 2019 (edited) You do realize that this UPS does not appear to be made by one of the manufacturers that is supported by the apcupsd group. While there are a number of manufacturers who have made their product 'compatible' with the APC products, there are no guarantees that apcupsd will work with everything. I will ask you again--- DID YOU ACTUALLY PULL THE PLUG AND VERIFY THAT THE COMBINATION OF THIS UPS AND apcupsd WILL ACTUALLY SHUT YOUR SERVER DOWN??? Edited July 10, 2019 by Frank1940 Quote Link to comment
scubieman Posted July 10, 2019 Author Share Posted July 10, 2019 I just pulled plug for about 5 minutes. Did not pull till it powered off. I'll try that later Quote Link to comment
Michael_P Posted July 10, 2019 Share Posted July 10, 2019 The UPS is communicating its status You need to verify you're getting Unraid's notifications (like the array status when you log in) Here's how I have mine: Quote Link to comment
korey_sed Posted July 13, 2023 Share Posted July 13, 2023 For anyone else that stumbles on here, I was not getting any agent alerts for power failures until I setup and enabled the email settings and checked those for notification as well. Now I get email and agent alerts (PushOver) when UPS goes on battery. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.