Jason Allen
2006-May-15 13:00 UTC
[Nut-upsuser] NUT 2.0.3 ups.conf serial comms to an MGE Ellipse
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@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@ubuntu:~$ grep -i nut /etc/group dialout:x:20:jason,nut nut:x:117: jason@ubuntu:~$ grep -i nut /etc/passwd nut:x:107:117::/var/lib/nut:/bin/false jason@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@ubuntu:~$ sudo cat /etc/nut/ups.conf [...] user = nut [mge] driver = mge-shut port = /dev/ttyS1 desc = "MGE Pulsar Ellipse UPS" jason@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@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@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
Charles Lepple
2006-May-15 13:14 UTC
[Nut-upsuser] NUT 2.0.3 ups.conf serial comms to an MGE Ellipse
On 5/15/06, Jason Allen <jallen@pobox.com> wrote:> 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?What are the permissions on /etc/nut itself?> 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.Think of the ups.conf syntax as a simple Windows .INI or Subversion conf file format. The UPS name is "mge", but in the file, you put the name in square brackets - "[mge]" - to delimit a new section in the file. -- - Charles Lepple
I need to upgrade my ups. I need one that works out of the box perfectly with NUT (no driver hacking etc). I know MGE supports NUT now, so I am guessing that would be my first choice. the server is a p4-~3ghz with ide raid, network cards, 1g of ram etc... any suggestions?
Maybe Matching Threads
- IVT SCD serial port help
- NUT and MGE Ellipse ASR 1500 under FreeBSD.
- Random but persistent USB disconnect/reconnect with MGE Pulsar Ellipse Premium
- MGE Pulsar Ellipse 800 offearly or box shutdown late
- NUT MGE Pulsar Ellipse Premium 800: Changed NUT rw variables?