Give us an idea of the size and type of panels and we might come up with something,
Unless they're a fair size the it's unlikely you'd get much benfit from wiring to a UPS, partly as the UPS will use mains to charge the batteries if plugged in anyway so would have to be in offgrid mode, and often they're configed as a number of batteries for 24V or 48V feeds.
You might find a small one that's 12V though.
I use my 15w PV panel to charge a 12V battery, then branch that off to power a bunch of 12V appliances, I like to keep all my "vampire " devices off of it, mobile phone, GPS etc on a 12V to USB adapter, but also have a 12V to AA+AAA battery charger.
I've always thought they should stick small solar panel and small verticle axis wind generators ontop of lamposts, ( and pylons ) as the infrastucture is essentially already in place.

