Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MGE UPS Ellipse 300 USB with NUT
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Mon Mar 12, 2007 3:32 pm    Post subject: MGE UPS Ellipse 300 USB with NUT Reply with quote

Hi all,

I've got trouble installing an MGE Ellipse 300 USB UPS. I followed the instructions found here :
https://forums.gentoo.org/viewtopic-t-372153

Everything goes on quite well, I did even skip the "patching" part because NUT is now at version 2.0.4...
However, UPSD daemon fails to sync. Starting up, it gives this output :
Code:
# /etc/init.d/upsd start
 * Starting upsd ...
Network UPS Tools upsd 2.0.4
Connected to UPS [mge]: newhidups-auto
Synchronizing........ giving up

Restarting gives the same output, except for random quotes like this...
Code:
Broadcast message from nut (Mon Mar 12 16:28:07 2007):
Communications with UPS mge@localhost lost
Broadcast message from nut (Mon Mar 12 16:28:07 2007):
Communications with UPS mge@localhost established

and such.

The device itself is seen by the system :
Code:
# lsusb
Bus 001 Device 008: ID 0463:ffff MGE UPS Systems UPS
Bus 001 Device 007: ID 03f0:1204 Hewlett-Packard DeskJet 930c
Bus 001 Device 001: ID 0000:0000

...though on my Phpsysinfo page, it is not listed in USB devices (strange, strange...)

And finally, I tried this :
Code:
# upsc mge@localhost
battery.charge: 100
battery.charge.low: 30
battery.runtime: 1715
driver.name: newhidups
driver.parameter.port: auto
driver.version: 2.0.4
driver.version.data: MGE HID 0.9
driver.version.internal: 0.28
input.transfer.high: 264.0
input.transfer.low: 184.0
outlet.0.desc: Main Outlet
outlet.0.id: 1
outlet.0.switchable: 0
outlet.1.autoswitch.charge.low: 0
outlet.1.desc: PowerShare Outlet 1
outlet.1.id: 0
outlet.1.switch: 1
outlet.1.switchable: 0
output.voltage: 230.0
ups.delay.shutdown: -1
ups.delay.start: -10
ups.load: 17
ups.mfr: MGE
ups.model: ellipse 500
ups.power.nominal: 500
ups.status: OL CHRG

Device is incorrectly listed as Ellipse 500 (it's a 300)...
I'm stuck here.

Anyone could help, please ?
Thanks in advance.
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
eXess
Apprentice
Apprentice


Joined: 17 Aug 2003
Posts: 243
Location: Belgium

PostPosted: Tue May 15, 2007 7:51 am    Post subject: Reply with quote

Well... I thought I'd give it one more shot by myself, as this post doesn't seem that popular... ;)
Two things needed to be corrected.
Code:
# chown root:nut /etc/nut/* && chmod 750 /etc/nut/*

Seemed obvious but er... I didn't see any error messages before today :(

Then add this in user description in /etc/nut/upsd.users
Code:
actions = SET
instcmds = ALL


I know, I should play with two users, one admin and the other "just regular", but hey... it works, and my system is not really at risk here. I do have to mention a few more things, though...

1. These pages at MGEUPS were userful :
http://opensource.mgeups.com/howto.htm
http://opensource.mgeups.com/install/debian.htm

2. To the contrary, the one related to Gentoo installation is empty and has been for months. Thank you MGEUPS you are really helpful to us Gentoo users :?

3. I'm running this on a server with no GUI and I would have been glad to have a console (text-mode) interface or even a web module to get to see variables and/or tune my UPS in a more friendly fashion. I'm a little disappointed here. Never mind, it works at last and you know what ? I'm happy (just like Droopy, yes...)

See ya
_________________
. . . . . . . .
eXess
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 830
Location: Sweden

PostPosted: Wed May 16, 2007 8:39 pm    Post subject: Reply with quote

Hi,

Quote:

3. I'm running this on a server with no GUI and I would have been glad to have a console (text-mode) interface or even a web module to get to see variables and/or tune my UPS in a more friendly fashion. I'm a little disappointed here. Never mind, it works at last and you know what ? I'm happy (just like Droopy, yes...)


You may emerge nut with the cgi flag. then you have some pages located in
/usr/html Move them to the apache /var/www/localhost/htdocs/nut (you need to create the nut directory)

Then you have in /usr/share/nut some cgi files that you move to /var/www/localhost/cgi-bin/nut
You have to secure the cgi-bin directory with a .htaccess

Code:

<Files upsset.cgi>
deny from all
allow from 127.0.0.1
</Files>


Now uncomment the
Quote:
I_HAVE_SECURED_MY_CGI_DIRECTORY

in the /etc/nut/upsset.conf

You need the upsstats and upsstats-single.html in the/etc/nut also.

And in the /etc/nut/hosts.conf you set the ups to monitor.
Quote:
MONITOR myups@localhost "Local UPS1"


Now you can check the ups with a browser and also send commands to it.

Regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum