Taking the APC Smart-UPS as an example of decent affordable one-up-from cheapest UPSs, which the other makes tend to follow in their offerings, all these objections are answered:
1. You *do* want the UPS to power cycle even if the line power is restored: otherwise your FreeNAS server, which has powered off by this time, will not switch back on.
Well, the 2 APC SMART-UPSes I have, once powered off will not power back on under any circumstances. You must physically touch them.
2. The default delay of switching off is I think six minutes, and it can be set in multiples of this. The trick is to set it much longer than you might need. (Careless advocacy might suggest that the Sysvinit/apcupsd system of switching off the UPS in software that runs *after* all user programs are shutdown and the filesystem mounted read-only would enable you to use even a simple UPS, but I recognise that that is irrelevant, especially with ZFS.)
The 6-minute thing changes depending on brand, model, and even hardware revision. See how fast the waters get muddy?
3. Not only will the UPS mentioned switch back on when line power is restored, but you can set a further minimum delay for this function to prevent various race conditions.
Like I said above.. mine never come back on.
Next para: switching off the UPS is not to save battery power, but to save battery life, as they really don't like being deeply discharged. This increases reliability, of course. (And the other function of power cycling the server to turn it back on is also relevant.)
Sorry, as someone with a background in battery technology I made the assumption that saving on battery discharge power meant increasing life as a natural result. I probably should have been more explicit with the link. BUT, this statement is not 100% true. Some battery designs actually prefer to be fully discharged before charging again (for these designs, if you take more than 5-10% out of the battery, you should fully discharge it before charging it again). Unfortunately the companies are very hush-hush on which is and which aren't. As a general rule, unless you are fully discharging your battery at very regular intervals (for example, once a week) then you should not have a problem with battery discharges shortening the battery life. Considering the fact that if you are losing power once a week a UPS is not sufficient for your problems (you should have some kind of backup diesel if your servers are that important). This problem is compounded by the fact that they typically offer 3 year battery lives, and unless there is a battery defect, no amount of
reasonable discharging will cause the battery to have a life shorter than 3 years, which means you *will* be buying more product from them (the battery) and they are 100% for that situation. Between 2008 and 2011 I'd literally lose power if a storm was within 100 miles of me. Being in IL it happened 2-3 times a week. It wasn't until the substation exploded and had to be replaced that I finally had stable and reliable power. I had 4 UPSes during that time and none of them had lifespans shorter than 4 years that I owned during that time.
Edit: if you're going to say that proper UPS control shouldn't be available because people might buy cheap, inappropriate hardware and this might lead to data loss, then you might as well say that FreeNAS shouldn't be available for the same reason.
I'm not. I was trying to convey that FreeNAS needs to be able to handle it's own little UPS that is shoved in a corner for small implementations and be able to receive information from monitoring hardware through NUT as master/slave for very large implementations. At some point UPSes aren't the answer for long power outages... backup diesel generators are. In those situations, this becomes a mute argument because you shouldn't be without power for more than about 60 seconds or so.
Remember, FreeNAS can't and shouldn't make every single setting available. The reason why FreeNAS is so great for the masses is because of its appliance-like nature. Deviate from that too much and you end up with an OS that has WAY too many settings that are confusing and make no sense. For people that need more control than FreeNAS offers, there is FreeBSD. You can do as much or as little as you want in FreeBSD. ;)
I have personal hatred of setting up NUT. The first time I tried to set up NUT myself in a FreeBSD implementation it took almost 2 solid days of working on NUT exclusively to get the darn thing to work right how I wanted it. I had 3 different UPSes to set up, and every single one behaved slightly differently (especially with relation to the auto-poweroff feature). If we are going to have that level of sophistication in FreeNAS' implementation, then NUT would be pretty useless to me. Mostly because I'd be forced to run LOTS of tests just to validate that what I'm wanting to do will actually be what happens. ;)
Heck, if you really want to you can be hacky and edit the python code in FreeNAS to do exactly what you want. :P Knowledge is power (UPS power.. haha).