[Nut-upsuser] problems with nut - openSUSE 10.3
mail at paul-neuwirth.de
mail at paul-neuwirth.de
Thu Oct 18 21:30:31 UTC 2007
Hallo group,
I am running openSUSE 10.3 with nut-2.2.0-20 installed. I have
configured it as mentioned in /usr/share/doc/packages/nut/README.SUSE.
on starting nut using "rcupsd start" i get following:
#
Starting NUT UPS monitor
done
Broadcast Message from root at pane
(somewhere) at 22:27 ...
Communications with UPS myups at localhost lost
Broadcast Message from root at pane
(somewhere) at 22:27 ...
UPS myups at localhost is unavailable
#
syslog:
Oct 18 22:27:29 pane upsmon[13329]: Startup successful
Oct 18 22:27:29 pane upsmon[13330]: UPS [myups at localhost]: connect
failed: Connection failure: Connection refused
Oct 18 22:27:29 pane upsmon[13330]: Communications with UPS
myups at localhost lost
Oct 18 22:27:34 pane upsmon[13330]: UPS [myups at localhost]: connect
failed: Connection failure: Connection refused
Oct 18 22:27:34 pane upsmon[13330]: UPS myups at localhost is unavailable
Oct 18 22:27:40 pane upsmon[13330]: UPS [myups at localhost]: connect
failed: Connection failure: Connection refused
i recognized upsd and the driver are not running...
so i tried to start the driver manually... but it didn't have
permissions on /dev/ttyS3, so i changed, and the driver works... then i
could also start upsd manually...
but upsmon or upsc can't connect to it:
# upsc -l
upsc.c:170: Error: Server disconnected
i get the same if i trie manually to connect to port 3493, the
connection is being closed at once..
what am i doing wrong, and why the hell does /etc/init.d/upsd change the
permissions on /dev/ttyS3 wrong?
thanks for your help,
Paul
-config files below (except the annotations)
ups.conf:
[myups]
driver = megatec
port = /dev/ttyS3
desc = "first UPS device"
-
upsd.conf (for testing allowed all, but port not reachable from the
internet):
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT all
-
upsd.users:
[upsmaster]
password = admin
allowfrom = localhost
upsmon master
[upsslave]
password = 82576d5d89
allowfrom = localhost
upsmon slave
-
upsmon.conf:
RUN_AS_USER upsd
MONITOR myups at localhost 1 upsmaster admin master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/lib/powersave/powersave-notify
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG
NOTIFYFLAG COMMOK SYSLOG
NOTIFYFLAG SHUTDOWN SYSLOG
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
More information about the Nut-upsuser
mailing list