Yes that could be the case actually my ups went kaboom a while back and my modem also started restarting around that time and then after sometime the problem resolved itself and i also didn't bothered to know how. Now its back, so i'll just try changing the ups battery.