[Bug 839490] Re: NUT is not shutdown UPS

2011-09-14 Thread Launchpad Bug Tracker
** Changed in: nut (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 839490] Re: NUT is not shutdown UPS

2011-09-14 Thread Dmitriy Altuhov
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
root   231  0.0  0.1   2412   556 ?SSep03   0:00 
upstart-udev-bridge --daemon
root   668  0.0  0.0   2412   468 ?SSep03   0:00 
upstart-socket-bridge --daemon
root 12368  0.0  0.1   5304   852 pts/1S+   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 ?SSep03   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 = XX
upsmon master
[server_mon]
password = XX
upsmon slave
[root]
password = XX
actions = SET
instcmds = ALL

root@gwlin:/etc/nut# cat /etc/nut/upsmon.conf | egrep -v (^#.*|^$)
MONITOR ippon@localhost 1 local_mon XX master
MINSUPPLIES 1
SHUTDOWNCMD /sbin/shutdown -h +0
NOTIFYCMD /usr/local/bin/upsmail
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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 839490] Re: NUT is not shutdown UPS

2011-09-05 Thread Robie Basak
** Changed in: nut (Ubuntu)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 839490] Re: NUT is not shutdown UPS

2011-09-05 Thread Dmitriy Altuhov
** Description changed:

  Description:Ubuntu 11.04
  Release:11.04
  nut version 2.6.0-1ubuntu3
  
- Problem: 
+ Problem:
  upsmon working under nut user (not root). nut user can't create file 
/etc/killpower
  
  Example:
  1) Mains out. UPS on battery
  2) Battery low. set FSD
  3) upsmon executes shutdowncmd but fails to create /etc/killpower
  4) /etc/init.d/halt executes /etc/init.d/ups-monitor poweroff
  5) /etc/init.d/ups-monitor poweroff executes upsmon -K to check 
/etc/killpower (but file does not exist)
  6) not sending shutdown command to UPS (upsdrvctl shutdown is not executed)
  7) system halted, but UPS stays on battery
  8) mains come back, ups going on mains, but load is not switched off/on
- 9) PC stay OFF (need manual start)
+ 9) PC stays OFF (need manual start)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 839490] Re: NUT is not shutdown UPS

2011-09-02 Thread Dmitriy Altuhov
Temp. solution:

1) rm -f /etc/killpower
2) chmod -R g+w /etc/nut/
3) edit upsmon.conf and change POWERDOWNFLAG /etc/nut/killpower
4) service nut restart

After this all fine! UPS shutdowns correctly. PC starts up when UPS goes
on.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/839490

Title:
  NUT is not shutdown UPS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/839490/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs