[Nut-upsuser] NUT 2.0.3 ups.conf serial comms to an MGE Ellipse
Jason Allen
jallen at pobox.com
Mon May 15 12:41:35 UTC 2006
I am running Ubuntu 6.06 connected via serial port to an MGE Pulsar
Ellipse 800VA. Have just installed NUT 2.0.3, and have problems with
connectivity. This UPS was workign via serial connectivity to a BSD
system only a few days ago. I have followed the instructions at
http://opensource.mgeups.com/install/debian.htm
The details...
jason at ubuntu:~$ ls -la /dev/ttyS?
crw-rw-rw- 1 root dialout 4, 64 2006-05-15 22:18 /dev/ttyS0
crw-rw-rw- 1 root dialout 4, 65 2006-05-14 22:12 /dev/ttyS1
jason at ubuntu:~$ grep -i nut /etc/group
dialout:x:20:jason,nut
nut:x:117:
jason at ubuntu:~$ grep -i nut /etc/passwd
nut:x:107:117::/var/lib/nut:/bin/false
jason at ubuntu:~$ ls -la /etc/nut/
-rw-r----- 1 root nut 3769 2006-05-15 21:30 ups.conf
-rw-r----- 1 root nut 1407 2006-05-15 20:26 upsd.conf
-rw-r----- 1 root nut 2391 2006-05-15 20:34 upsd.users
jason at ubuntu:~$ sudo cat /etc/nut/ups.conf
[...]
user = nut
[mge]
driver = mge-shut
port = /dev/ttyS1
desc = "MGE Pulsar Ellipse UPS"
jason at ubuntu:~$ dmesg | grep -i ttyS
[42949378.240000] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[42949378.240000] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[42949378.250000] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[42949378.250000] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
I have also tried/used "port = /dev/ttyS0" in the ups.conf to make sure
it's not just the wrong serial port I am selecting.
jason at ubuntu:~$ /sbin/upsdrvctl -u nut start [mge]
Network UPS Tools - UPS driver controller 2.0.3
Can't open /etc/nut/ups.conf: Can't open /etc/nut/ups.conf: Permission
denied
jason at ubuntu:~$ sudo /sbin/upsdrvctl -t -u nut start [mge]
Network UPS Tools - UPS driver controller 2.0.3
*** Testing mode: not calling exec/kill
UPS [mge] not found in ups.conf
Two questions arise:
a) Since '/etc/nut/ups.conf' has read rights for group 'nut', why does
starting 'upsdrvctl' under parameter for user 'nut' give a permission
denied on the conf file?
b) Why does starting 'upsdrvctl' under sudo for root permission give a
response that "[mge]" is not found in the conf file? As above, clearly
it is.
Help/thoughts appreciated.
---
Cheers,
Jason
More information about the Nut-upsuser
mailing list