Hi folks,
I've now a new "usb-thing" attached to a CentOs 4.3 box in my room and just followed these steps to get it up and running, hope it helps.
[root@sparkbox ~]# cat /etc/yum.repos.d/mgeups.repo [mgeups] name=MGE UPS SYSTEMS baseurl=http://opensource.mgeups.com/rhfc/ gpgcheck=0
# yum install mgeups-psp
Now plug the ups and check that:
[root@sparkbox ups]# lsusb | grep MGE Bus 003 Device 002: ID 0463:ffff MGE UPS Systems UPS
I had to restart hotplug to get the following working:
[root@sparkbox ~]# newhidups -a mgeups Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2-pre2) Detected an UPS: MGE UPS SYSTEMS/ELLIPSE
Then, go to /etc/sysconfig/ups and:
MODEL=newhidups DEVICE=mgeups OPTIONS="-a" UPSD_OPTIONS=
Just verify that /etc/ups/ups.conf has something like this:
[mgeups] driver = newhidups port = auto desc = "SparkBox ellipse ASR 1000 VA managed unit"
And that's all if you use the standard config providen by the MGE folks,
[root@sparkbox ~]# service ups start Iniciando newhidups: [ OK ] Iniciando upsd: [ OK ] Iniciando monitor UPS (master): [ OK ]
Check syslog:
Mar 24 11:56:13 sparkbox newhidups: Network UPS Tools: New USB/HID UPS driver 0.23 (2.0.2-pre2) Mar 24 11:56:13 sparkbox newhidups: Mar 24 11:56:13 sparkbox newhidups: Detected an UPS: MGE UPS SYSTEMS/ELLIPSE Mar 24 11:56:13 sparkbox newhidups: Mar 24 11:56:16 sparkbox newhidups[5869]: Startup successful Mar 24 11:56:16 sparkbox ups: Iniciación de newhidups succeeded Mar 24 11:56:16 sparkbox upsd[5872]: /etc/ups/upsd.conf is world readable Mar 24 11:56:16 sparkbox upsd[5872]: Connected to UPS [mgeups]: newhidups-auto Mar 24 11:56:16 sparkbox upsd: Network UPS Tools upsd 2.0.2-pre2 Mar 24 11:56:16 sparkbox upsd: Synchronizing... Mar 24 11:56:16 sparkbox upsd: /etc/ups/upsd.conf is world readable Mar 24 11:56:16 sparkbox upsd: Connected to UPS [mgeups]: newhidups-auto Mar 24 11:56:17 sparkbox upsd: . Mar 24 11:56:20 sparkbox last message repeated 3 times Mar 24 11:56:21 sparkbox upsd: . giving up Mar 24 11:56:21 sparkbox upsd[5873]: Startup successful Mar 24 11:56:21 sparkbox ups: Iniciación de upsd succeeded Mar 24 11:56:21 sparkbox upsmon[5877]: Startup successful Mar 24 11:56:21 sparkbox upsd[5873]: Connection from 127.0.0.1 Mar 24 11:56:21 sparkbox upsd[5873]: Client monuser@127.0.0.1 logged into UPS [mgeups] Mar 24 11:56:21 sparkbox upsmon[5878]: Poll UPS [mgeups@localhost] failed - Variable not supported by UPS Mar 24 11:56:21 sparkbox upsmon: UPS: mgeups@localhost (master) (power value 1) Mar 24 11:56:21 sparkbox upsmon: Using power down flag file /etc/killpower Mar 24 11:56:21 sparkbox upsmon: Mar 24 11:56:21 sparkbox ups: Iniciación de upsmon succeeded
Unless for the rigth perms to config files, and the (i think) the 'POLLFREQ 5' and 'POLLFREQALERT 5' parameters in /etc/ups/upsmon.conf the rest is working ok.
Don't forget to open at /etc/sysconfig/iptables
# NUT/upsd -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3493 -j ACCEPT
To get mon from remote computers and allow them in the corresponding ACL at /etc/ups/upsd.conf:
... ACL lan 192.168.0.0/24 ACCEPT lan ... REJECT all
Have a good day,
Jose
On Fri, 2006-03-24 at 12:45 +0100, J.J.Garcia wrote:
Hi folks,
I've now a new "usb-thing" attached to a CentOs 4.3 box in my room and just followed these steps to get it up and running, hope it helps. <snip *excellent* narrative>
Have a good day,
Jose
Thank you *very* much for that.
Excellent contribution by a *good* community member. Maybe we should look at replacing all those stupid mini-wars we have with this sort of stuff.
Bill