This issue is in no way related to ubuntu but would appreciate any help that I may get here.
I have recently changed the battery of my 600VA Microtek UPS..that I use to power my CPU and monitor on power failure.

However every time there is a power failure the computer restarts and then works fine..but the purpose of the UPS is not served.

The irony is that if I manually turn off the switch while the computer is on..it never goes off..not even a single time.
I pulled the plug as well...yet it keeps working..

No what the heck happens when a power failure happens..that my UPS does not work?