As Janner_10 says, shutdown one at a time and move over to the new UPS, starting with the secondary.
It may be worth taking things a step further, and install a bypass switch. That way in future you can work on the UPS without needing to shut everything down.
For our critical servers we install an automatic transfer switch so if the UPS fails, everything reverts back to mains automatically.