我使用 nut 监控我的 ippon 800 UPS。除了关机之外,一切似乎都正常。
我可以使用upsc
命令获取 UPS 参数:
~ > upsc ippon-800
battery.charge: 0
battery.voltage: 12.50
battery.voltage.high: 13.60
battery.voltage.low: 12.60
battery.voltage.nominal: 12.0
beeper.status: enabled
device.type: ups
driver.name: blazer_usb
driver.parameter.offdelay: 6
driver.parameter.ondelay: 7
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.4.3
driver.version.internal: 0.03
input.current.nominal: 3.0
input.frequency: 50.1
input.frequency.nominal: 50
input.voltage: 6.1
input.voltage.fault: 6.1
input.voltage.nominal: 220
output.voltage: 226.9
ups.delay.shutdown: 6
ups.delay.start: 420
ups.load: 6
ups.productid: 0003
ups.status: OB
ups.temperature: 25.0
ups.type: offline / line interactive
ups.vendorid: 06da
每 5 分钟,每个终端都会收到断电警告:
Широковещательное сообщение от nut@myhost
(somewhere) at 20:45 ..
UPS ippon-800@localhost on battery
这是我的配置:
~ > cat /etc/nut/ups.conf
[ippon-800]
driver = blazer_usb
port = auto
desc = "Ippon Back Power Pro 800"
default.battery.voltage.high = 13.60
default.battery.voltage.low = 12.60
offdelay = 6
ondelay = 7
~ > cat /etc/nut/upsmon.conf |grep -v ^#|sort|uniq
DEADTIME 21
FINALDELAY 5
HOSTSYNC 15
MINSUPPLIES 1
MONITOR ippon-800@localhost 1 nut heh-secret-password master
NOCOMMWARNTIME 300
POLLFREQ 5
POLLFREQALERT 5
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
RUN_AS_USER nut
SHUTDOWNCMD "/sbin/shutdown -h +0"
我的 UPS 发出大约 15 分钟的哔哔声后就关闭了我的电脑,没有执行关机命令。我该如何让它关机?
更新
放POWERDOWNFLAG /tmp/killpower