[Nut-upsuser] nut UPS kill inverter: offdelay ignored

Martin Ivanov tramni at abv.bg
Tue Jun 30 15:13:00 UTC 2015


Dear All,

I am running Slackware64-14.1(Linux marto 3.10.17 #1 SMP Fri Feb 14 16:39:21 CST 2014 x86_64 Intel(R) Pentium(R) CPU G3250 @ 3.20GHz GenuineIntel GNU/Linux)
with kernel 3.10.17 and nut package nut-2.6.5-x86_64-1_SBo, buit from source using the build script http://slackbuilds.org/repository/14.1/system/nut/

In the README.Slackware it is suggested that
the commands for killing the inverter be placed in certain positions in rc.6 after remounting the root
file system read only. In my configuration, however, the /usr and /root directories are on
different partitions, so I added these commands after turning off swap and before unmounting the
local file systems, like this:
# rc.6
...
# Turn off swap:
echo "Turning off swap."
/sbin/swapoff -a
/bin/sync

# Turn off UPS's power
if [ -x /usr/libexec/nut/nut_restart_udev ]; then
 . /usr/libexec/nut/nut_restart_udev
fi
if [ -x /usr/libexec/nut/nut_kill_inverter ]; then
. /usr/libexec/nut/nut_kill_inverter
fi

echo "Unmounting local file systems."
/bin/umount -v -a -t no,proc,sysfs
...

I also set in the ups.conf file that the UPS should be killed 3 minutes after issuing the kill
inverter command:
# ups.conf
[Eaton5E650iUSB]
driver = usbhid-ups
port = auto
desc = "UPS Eaton5E650iUSBDIN"
offdelay=180
ondelay=200

On power failure the shutdown process reaches the kill inverter commands in rc.6,
issues them and in several seconds shuts down the UPS, obviously ignoring the offdelay setting.
Furthermore, it does not proceed to issue the remaining rc.6 commands, but seems to hang at shutting down the UPS.

Do You have any suggestions?

Thank You very much for Your attention.

Best regards,

Martin

PS: Here is some diagnostic info:
upsc Eaton5E650iUSB at localhost
battery.charge: 60
battery.runtime: 619
battery.type: PbAc
device.mfr: EATON
device.model: 5E 650i
device.type: ups
driver.name: usbhid-ups
driver.parameter.offdelay: 180
driver.parameter.ondelay: 200
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.6.5-Unversioned directory
driver.version.data: MGE HID 1.31
driver.version.internal: 0.37
input.voltage: 247.0
outlet.1.status: on
outlet.desc: Main Outlet
outlet.id: 1
outlet.switchable: no
output.frequency: 49.9
output.frequency.nominal: 50                                                                                                                                                                                                                
output.voltage: 246.0                                                                                                                                                                                                                       
output.voltage.nominal: 230                                                                                                                                                                                                                 
ups.beeper.status: enabled                                                                                                                                                                                                                  
ups.delay.shutdown: 180                                                                                                                                                                                                                     
ups.firmware: 02.06.0017                                                                                                                                                                                                                    
ups.load: 28                                                                                                                                                                                                                                
ups.mfr: EATON                                                                                                                                                                                                                              
ups.model: 5E 650i                                                                                                                                                                                                                          
ups.power.nominal: 650                                                                                                                                                                                                                      
ups.productid: ffff                                                                                                                                                                                                                         
ups.start.battery: yes                                                                                                                                                                                                                      
ups.status: OL CHRG                                                                                                                                                                                                                         
ups.timer.shutdown: -1                                                                                                                                                                                                                      
ups.vendorid: 0463




More information about the Nut-upsuser mailing list