Package: nut-client
Version: 2.6.4-1
Severity: important

when an "onbatt" event occurs, I see messages such as the following in
/var/log/daemon.log:

Jun 29 13:41:39 netadm5 upsmon[3752]: UPS ippon@127.0.0.1 on battery
Jun 29 13:41:39 netadm5 upssched[30216]: Timer daemon started
Jun 29 13:41:39 netadm5 upssched[30216]: Unknown command on socket:
Jun 29 13:41:39 netadm5 upssched[30216]: arg 0: 15START
Jun 29 13:41:39 netadm5 upssched[30216]: arg 1: onbatt
Jun 29 13:41:39 netadm5 upssched[30216]: arg 2: 15
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:39 netadm5 upssched[30216]: Unknown command on socket:
Jun 29 13:41:39 netadm5 upssched[30216]: arg 0: 15START
Jun 29 13:41:39 netadm5 upssched[30216]: arg 1: onbatt
Jun 29 13:41:39 netadm5 upssched[30216]: arg 2: 15
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
[skipped repeated lines]
Jun 29 13:41:39 netadm5 upssched[30216]: Timer queue empty, exiting
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation failed, trying again
Jun 29 13:41:39 netadm5 upssched[30217]: Timer daemon started
Jun 29 13:41:39 netadm5 upssched[30217]: Unknown command on socket:
Jun 29 13:41:39 netadm5 upssched[30217]: arg 0: 15START
Jun 29 13:41:39 netadm5 upssched[30217]: arg 1: onbatt
Jun 29 13:41:39 netadm5 upssched[30217]: arg 2: 15
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:39 netadm5 upssched[30217]: Unknown command on socket:
Jun 29 13:41:39 netadm5 upssched[30217]: arg 0: 15START
Jun 29 13:41:39 netadm5 upssched[30217]: arg 1: onbatt
Jun 29 13:41:39 netadm5 upssched[30217]: arg 2: 15
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
[skipped repeated lines]
Jun 29 13:41:39 netadm5 upssched[30217]: Unknown command on socket:
Jun 29 13:41:39 netadm5 upssched[30217]: arg 0: 15START
Jun 29 13:41:39 netadm5 upssched[30217]: arg 1: onbatt
Jun 29 13:41:39 netadm5 upssched[30217]: arg 2: 15
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:39 netadm5 upssched[30217]: Timer queue empty, exiting
Jun 29 13:41:39 netadm5 upssched[30215]: read confirmation failed, trying again
Jun 29 13:41:39 netadm5 upssched[30218]: Timer daemon started
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30218]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30218]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30218]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30218]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30218]: Timer queue empty, exiting
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Timer daemon started
Jun 29 13:41:40 netadm5 upssched[30219]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30219]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30219]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30219]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30219]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30219]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30219]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30219]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30219]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30219]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30219]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30219]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30219]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Unknown command on socket:
Jun 29 13:41:40 netadm5 upssched[30219]: arg 0: 15START
Jun 29 13:41:40 netadm5 upssched[30219]: arg 1: onbatt
Jun 29 13:41:40 netadm5 upssched[30219]: arg 2: 15
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation got [ERR UNKNOWN t"
"15"]
Jun 29 13:41:40 netadm5 upssched[30219]: Timer queue empty, exiting
Jun 29 13:41:40 netadm5 upssched[30215]: read confirmation failed, trying again
Jun 29 13:41:40 netadm5 upssched[30220]: Timer daemon started
Jun 29 13:41:40 netadm5 upssched[30215]: Unable to connect to daemon and unable
to start daemon

as a result the upssched fails to properly handle the timer.

when the power returns back, I see the following in the log:

Jun 29 13:41:49 netadm5 upsmon[3752]: UPS ippon@127.0.0.1 on line power
Jun 29 13:41:49 netadm5 upssched[30220]: Unknown command on socket:
Jun 29 13:41:49 netadm5 upssched[30220]: arg 0: onbattCANCEL
Jun 29 13:41:49 netadm5 upssched[30220]: arg 1: onbatt
Jun 29 13:41:49 netadm5 upssched[30223]: read confirmation got [ERR UNKNOWN
tt"]
Jun 29 13:41:49 netadm5 upssched[30220]: Unknown command on socket:
Jun 29 13:41:49 netadm5 upssched[30220]: arg 0: onbattCANCEL
Jun 29 13:41:49 netadm5 upssched[30220]: arg 1: onbatt
Jun 29 13:41:49 netadm5 upssched[30223]: read confirmation got [ERR UNKNOWN
tt"]
Jun 29 13:41:49 netadm5 upssched[30220]: Timer queue empty, exiting

here's my /etc/nut/upsmon.conf:

MONITOR ippon@127.0.0.1 1 monmaster xxxxxxxx master
POWERDOWNFLAG /etc/killpower
SHUTDOWNCMD "/etc/nut/shutdown.sh"
NOTIFYCMD /sbin/upssched
NOTIFYFLAG ONLINE SYSLOG+EXEC
NOTIFYFLAG ONBATT SYSLOG+EXEC

here's /etc/nut/upssched.conf:

CMDSCRIPT /etc/nut/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
AT ONBATT * START-TIMER onbatt 15
AT ONLINE * CANCEL-TIMER onbatt




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nut-client depends on:
ii  libc6          2.13-33
ii  libupsclient1  2.6.4-1

Versions of packages nut-client recommends:
ii  bash-completion  1:2.0-1

nut-client suggests no packages.

-- Configuration Files:
/etc/nut/nut.conf changed:
MODE=standalone
UPSD_OPTIONS=""
UPSMON_OPTIONS=""

/etc/nut/upsmon.conf [Errno 13] Permission denied: u'/etc/nut/upsmon.conf'
/etc/nut/upssched.conf [Errno 13] Permission denied: u'/etc/nut/upssched.conf'

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to