July 8, 20196 yr 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/
July 8, 20196 yr Community Expert 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!
July 8, 20196 yr Author 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.
July 8, 20196 yr Community Expert 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!)
July 9, 20196 yr Community Expert 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, 20196 yr by Michael_P Text of email added
July 9, 20196 yr Community Expert 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
July 10, 20196 yr Author I enabled still not working sadly. I can send test email but after wards it shows below..
July 10, 20196 yr Author 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.
July 10, 20196 yr Community Expert 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, 20196 yr by Frank1940
July 10, 20196 yr Author I just pulled plug for about 5 minutes. Did not pull till it powered off. I'll try that later
July 10, 20196 yr Community Expert 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:
July 13, 20232 yr 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.
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.