"upsmon forks 2 instances" - yes, I have they. But why killpower is setting by unprivileded instance ("nut")? I confirm, SHUTDOWNCMD is launched proper (by privileged instance).
I have 3 servers on Ubuntu 11.04 with UPS APC on each. Config files,daemons are identical. Differents only in UPS. APC SmartUPS 750i (SUA750I), BackUPS CS 500 (BK500EI), BackUPS ES 550. All connected with driver = usbhid-ups.
root@gwlin:/etc/init.d# upsmon -K
Network UPS Tools upsmon 2.6.0
UPS: ippon@localhost (master) (power value 1)
Using power down flag file /etc/nut/killpower
Power down flag is not set
I have nut version 2.6.0-1ubuntu3
"upsmon forks 2 instances" - yes, I have they. But why killpower is setting by unprivileded instance ("nut")? I confirm, SHUTDOWNCMD is launched proper (by privileged instance).
I have 3 servers on Ubuntu 11.04 with UPS APC on each. Config files,daemons are identical. Differents only in UPS. APC SmartUPS 750i (SUA750I), BackUPS CS 500 (BK500EI), BackUPS ES 550. All connected with driver = usbhid-ups.
So, many info:
root@gwlin: /etc/nut# ps faux | grep ups socket- bridge --daemon
root 231 0.0 0.1 2412 556 ? S Sep03 0:00 upstart-udev-bridge --daemon
root 668 0.0 0.0 2412 468 ? S Sep03 0:00 upstart-
root 12368 0.0 0.1 5304 852 pts/1 S+ 15:22 0:00 \_ grep --color=auto ups
nut 2510 0.0 0.0 2196 444 ? Ss Sep03 5:20 /lib/nut/usbhid-ups -a ippon
nut 2512 0.0 0.0 2128 456 ? Ss Sep03 0:53 /sbin/upsd
root 2514 0.0 0.1 2108 568 ? Ss Sep03 0:00 /sbin/upsmon
nut 2516 0.0 0.1 2108 576 ? S Sep03 0:30 \_ /sbin/upsmon
root@gwlin: /etc/nut# cat /etc/nut/nut.conf | egrep -v "(^#.*|^$)"
MODE=netserver
root@gwlin: /etc/nut# cat /etc/nut/ups.conf | egrep -v "(^#.*|^$)"
[ippon]
driver = usbhid-ups
port = auto
root@gwlin: /etc/nut# cat /etc/nut/upsd.conf | egrep -v "(^#.*|^$)"
LISTEN 127.0.0.1
LISTEN 10.0.0.1
root@gwlin: /etc/nut# cat /etc/nut/upsd.users | egrep -v "(^#.*|^$)"
[local_mon]
password = XXXXXX
upsmon master
[server_mon]
password = XXXXXX
upsmon slave
[root]
password = XXXXXX
actions = SET
instcmds = ALL
root@gwlin: /etc/nut# cat /etc/nut/ upsmon. conf | egrep -v "(^#.*|^$)" bin/upsmail
MONITOR ippon@localhost 1 local_mon XXXXXX master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/nut/killpower
NOTIFYFLAG ONLINE EXEC+SYSLOG
NOTIFYFLAG ONBATT EXEC+SYSLOG
NOTIFYFLAG LOWBATT EXEC+SYSLOG
NOTIFYFLAG FSD EXEC+SYSLOG
NOTIFYFLAG COMMOK EXEC+SYSLOG
NOTIFYFLAG COMMBAD EXEC+SYSLOG
NOTIFYFLAG SHUTDOWN EXEC+SYSLOG
NOTIFYFLAG REPLBATT EXEC+SYSLOG
NOTIFYFLAG NOCOMM EXEC+SYSLOG
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
root@gwlin: /etc/default# cat ./halt | egrep -v "(^#.*|^$)"
HALT=poweroff
root@gwlin: /etc/init. d# upsmon -K
Network UPS Tools upsmon 2.6.0
UPS: ippon@localhost (master) (power value 1)
Using power down flag file /etc/nut/killpower
Power down flag is not set