I run a research lab that has a bunch of electrical equipment that needs to run 24/7 and is very sensitive to loses of power and/or surges. Our building has a generator and we have two separate UPS's that keep power going to two different machines until the generator comes online. Unfortunately, we are having issues with the system working properly.

What I would like to know is if there some type of monitor that can be plugged into an outlet that will record the time and duration of a loss in power? Information on power surges would be good too.

I think I want to put a monitor in 3 different locations.
1) plug that is not on emergency power.
2) plug that is on the panel to the generator
3) plug that is on the UPS and the generator

I'm a geologist, not an electrician so I've already exhausted all of my knowledge on the issue.