The UPSs are APC SmartUPSs. The statistics are read using the apcaccess program from apcupsd.
The data is stored in an RRDtool database. The graphs are also generated by RRDtool.