Hello, Last night we had a power failure and my upsses worked. Strange thing was that the ups supporting the Windoze box lasted longer than the one supporting the (Epia based) Linux box (running nut). After exactly 5 minutes the Linux machine went down abruptly. Is this a configuration issue? What did I overlook? Please comment. Thanks, Udo
On 8/25/06, Udo van den Heuvel <udovdh@xs4all.nl> wrote:> Is this a configuration issue? What did I overlook?Hard to tell. Please provide some more information, including: * Version of nut * Distribution of Linux * whether or not you compiled nut from source * some UPS-related logs -- - Charles Lepple
Charles Lepple wrote:> On 8/25/06, Udo van den Heuvel <udovdh@xs4all.nl> wrote: >> Is this a configuration issue? What did I overlook? > > Hard to tell. Please provide some more information, including: > > * Version of nut2.0.3-2> * Distribution of LinuxRedhat Fedora Core 5> * whether or not you compiled nut from sourceI just installed an rpm. I can compile source if needed.> * some UPS-related logsNot much; in messages: Aug 24 19:50:07 epia upsmon[1815]: UPS myups@localhost on battery Other places?
Rob wrote:>> Did you try switching the two machines? > > On my system, I only have 1 UPS and I have monitored it in windows and > in Linux. In windows, the same set of systems will properly wait until > the designated time to shutdown (>5 minutes). When I boot into Linux, > my Linux system performs an abrupt poweroff after about 5 minutes.Exactly my observation. No logs showing a shutdown process.> In windows, I monitored the power output and saw that the battery > drained very quickly down to 60%, and then stabilized. I contacted > CyberPower about this and they stated that this is a normal discharge > pattern for SLA batteries. Does NUT possibly detect the power drain > rate and perform an action based upon that? Even if the UPS was sending > a low power indicator, I can't see why NUT wouldn't do a clean shutdown > of the system?NUT should not (just) monitor a rate but (also) the remaining percentage of UPS charge?
That is very odd indeed. Why should the system shut off abruptly? If the log shows nothing, then it seems that the UPS just turned off the power. I recommend testing this while attaching, say, a lamp to the UPS, instead of a computer. (You can still use your computer to monitor the UPS, just don't plug it into it!) -- Peter Rob wrote:> > > Upsmon is responsible for monitoring and reacting to power events. > > See also the man pages for upsmon(8), upsmon.conf(5), upssched(8), and > > upssched.conf(5). > > > > There could be many reasons your Windows machine lasts longer than > > your Linux machine on their respective UPSs. Perhaps the battery on > > the second one is older, or has lost some of its charge, or is lower > > quality... Batteries tend to wear out quite easily, especially if they > > are discharged and recharged a few times. > > > > Did you try switching the two machines? > > On my system, I only have 1 UPS and I have monitored it in windows and > in Linux. In windows, the same set of systems will properly wait until > the designated time to shutdown (>5 minutes). When I boot into Linux, > my Linux system performs an abrupt poweroff after about 5 minutes. I > notice that UPS has been shutoff, but that the system has not been > shutdown cleanly as the logs do not show a system shutdown and disks > need to be recovered on bootup. > > In windows, I monitored the power output and saw that the battery > drained very quickly down to 60%, and then stabilized. I contacted > CyberPower about this and they stated that this is a normal discharge > pattern for SLA batteries. Does NUT possibly detect the power drain > rate and perform an action based upon that? Even if the UPS was sending > a low power indicator, I can't see why NUT wouldn't do a clean shutdown > of the system? > > Rob >
Rob wrote:> > >> While plugged into the wall: > >> battery.charge: 100.0 > >> battery.runtime: 64:41 > >> driver.name: cpsups > >> driver.parameter.port: /dev/ttyS2 > >> driver.version: 2.0.4 > >> driver.version.internal: .04 > >> input.frequency: 60 > >> input.voltage: 122 > >> output.voltage: 122 > >> ups.load: 9 > >> ups.mfr: CyberPower > >> ups.model: CPS1200VA 1.500 > >> ups.power.nominal: 1200 > >> ups.runtime: 70 > >> ups.status: OL > >> ups.temperature: 28 > >> > >> After power removed for ~5 minutes: > >> battery.charge: 65.0 > >> battery.runtime: 46:29 > >> driver.name: cpsups > >> driver.parameter.port: /dev/ttyS2 > >> driver.version: 2.0.4 > >> driver.version.internal: .04 > >> input.frequency: 0 > >> input.voltage: 0 > >> output.voltage: 0 > >> ups.load: 0 > >> ups.mfr: CyberPower > >> ups.model: CPS1200VA 1.500 > >> ups.power.nominal: 1200 > >> ups.runtime: 70 > >> ups.status: OB > >> ups.temperature: 42 > > > > Let me just clarify: was the lamp already off when you took this > > second reading? -- Peter > > Yes. When I took the second reading, the UPS had just shut off and the > lamp was off.Okay. Did you make a reading when the UPS was unplugged, but before the light went off? It would have been after the first one, but before the second one, above. -- Peter