Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: grog on January 19, 2006, 05:26:39 AM

Title: NUT UPS
Post by: grog on January 19, 2006, 05:26:39 AM
I have Nut running on another machine on the network, that machine is conected to the UPS and does everything it should do. That machine is a Fedora 4 box.

Now the UPS is also feeding 2 SME server boxes, they appear to have NUT installed already.

But when i give the command "upsc powerware@192.168.1.3"
I get the response "Unable to get variable list - Unknown command"

If i give it the wrong ip address, i get what i expect that the connection is refused, so it seems like theres some sort of talking happening..

If i give the wrong UPS name though, i get the same result..

I have both a windows machine and another fedora machine talking to the one with the UPS so i know it must be the SME box.

any solutions?
Title: NUT UPS
Post by: mrjhb3 on January 19, 2006, 06:47:02 AM
I did this:

[root@mine root]# more /etc/ups/upsd.conf
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------

ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCESS grant monitor localhost
ACCESS grant login localhost
ACCESS deny all all

Then did:

[root@mine root]# upsc localhost
UPS: localhost
MFR: Generic
MODEL: Back-UPS RS 1000 FW:7.g8 .D USB
SERIAL: QB0428130472  
STATUS: OL
BATTVOLT: 26.9
BATTPCT: 100
RUNTIME: 1597
LOADPCT: 35

I think that is what you are looking for.

JB
Title: NUT UPS
Post by: grog on January 19, 2006, 06:50:16 AM
The UPS is located on another machine, not the one i'm tryint to get UPSC working from..
Title: NUT UPS
Post by: byte on January 19, 2006, 11:38:09 PM
Quote from: "grog"
The UPS is located on another machine, not the one i'm tryint to get UPSC working from..


Try (not tested) creating a template like this...

mkdir -p  /etc/e-smith/templates-custom/etc/ups/upsd.conf/

then copy 2 files from /etc/e-smith/templates/etc/ups/upsd.conf/ into our new directory we create and add into 20ACL under ACL local....

ACL remoteip 192.168.1.3/32

make sure you have a return after typing that, then open 40ACCESS add a line...

ACCEPT remoteip

now expand template by issuing...

expand-template /etc/ups/upsd.conf

now try accessing it (may need to restart nut)
Title: NUT UPS
Post by: grog on January 25, 2006, 12:58:26 AM
That doesn't seem to have made a difference..

I was of the understanding that upsd.conf was only needed on the machine connected to the UPS, and only upsmon and upsc is needed on the other machines?

or am i way off here?
Title: NUT UPS
Post by: grog on January 25, 2006, 03:29:24 AM
Just noticed on the machine connected to the UPS (FC3) nut is version 2.0.2 on the e-smith machine, nut is version 1.2.

I'm assuming this could be the problem, how would i go about upgrading nut, could i use a generic rpm or something like that?