Hi, I'm new here and I don't normally unearth old topics, but what I am about to describe follows on from much of what has been posted here before.
My setup:
APC CS500 UPS
2 x QNAP TS-431 NAS
2 x external HDD
Win10Pro PC
24-port Cisco Gb switch
The UPS protects all of these and is connected to 1 NAS as master, the other NAS is a slave. Both NAS show a battery indicator at 100%, but not the time remaining on battery. They are set to enter auto-protection mode after 2 mins on battery. So far, so good.
As a trial, I have installed APC's Powerchute Home software. It also showed the battery as full and the load at 150W, just under 50%. According to the run time calculator on APC's web site, this should be enough to keep the lights on for 14 mins. However, at the bottom of the screen it indicated a run time of < 1min. (The ups was bought 2nd hand and the vendor has partially refunded my money, so I can buy a new battery, which will happen shortly.) Pulling the plug saw the UPS shut down after 1:50. As Powerchute doesn't network I removed it again.
So then I installed Winnut, abandoned in 2011, but works under Win10. However, it indicates in the log that the master reports the battery always to be low, so when the power fails it shuts down after 5 secs and that seemingly can't be changed.
The system needs to be on 24/7 and has to restart automatically after a power failure. So now I have these questions:
1. How can I stop NUT on the UPS report low battery, so a 10 sec brownout doesn't cause the PC to shut down?
2. If the mains power comes back on before the battery is flat, how can I reboot the PC? Wake-on-LAN works, but not always the 1st time round... Perhaps NUT can be made to run a script every time a shutdown is cancelled. Failing that, a cron job. Something like "ping PC, if it fails send WOL, repeat after 30 secs"
I'd appreciate any hints and guidance. I have shell access on the NAS.
Thanks in advance,
Peter.