UPS battery systems are not normally grounded. This gives them a degree of immmunity to ground faults: the first ground fault will not have a detrimental effect on the battery. Monitoring is essential and ground faults must be hunted down and removed promptly. A second ground fault at a different position on the battery string is usually messy.
Check with the individual UPS manufacturer for the best advice for their product.
----------------------------------
If we learn from our mistakes,
I'm getting a great education!