Faulty computer UPS won’t hold power for five minute

I am having a problem with my UPS.
When the computer is in use and having a power outage the Ups suddenly turn off just few seconds after the power problem.
So when the power comes back again I have to turn the ups on again.
