[Nut-upsuser] FW: connection lost [SOLVED]

Ray Garza rgarza28 at utpa.edu
Mon Jul 12 15:29:40 UTC 2010


I did find an error in the /etc/nut/upsd.conf where I had the Reject ALL command in there and thus the error in the syslog indicating NOT Listening on 127.0.0.1. I cleared out the command. Below is my current setup:

/etc/nut/nut.conf
MODE=standalone


/etc/nut/upsd.conf
LISTEN 127.0.0.1 3493


/etc/nut/upsd.users

[local_mon]

    password = Ben_Bova1982

    upsmon master


/etc/nut/upsmon.conf

MINSUPPLIES 1

SHUTDOWNCMD "/sbin/shutdown -h now"

POLLFREQ 5

POLLFREQALERT 5

HOSTSYNC 15

DEADTIME 15

POWERDOWNFLAG /etc/killpower

RBWARNTIME 43200

NOCOMMWARNTIME 300

FINALDELAY 5

MONITOR omni at localhost 1 local_mon Ben_Bova1982 master





/etc/hosts

127.0.0.1      localhost

127.0.1.1      bidfax.utpa.edu

129.113.13.16   bidfax.utpa.edu



I deleted all processes for usbhid and ran the following two commands:

sudo upsdrvctl start

sudo /etc/init.d/nut start



upsc omni now produces results



> upsc omni

battery.charge: 100

battery.runtime: 1395

battery.type: PbAc

battery.voltage.nominal: 12.0

device.mfr: Tripp Lite

device.model: TRIPP LITE UPS

device.serial: FW-2263 E

device.type: ups

driver.name: usbhid-ups

driver.parameter.pollfreq: 30

driver.parameter.pollinterval: 2

driver.parameter.port: auto

driver.version: 2.4.3

driver.version.data: TrippLite HID 0.4

driver.version.internal: 0.34

input.voltage.nominal: 120

output.frequency.nominal: 60

output.voltage.nominal: 120

ups.beeper.status: enabled

ups.delay.shutdown: 20

ups.mfr: Tripp Lite

ups.model: TRIPP LITE UPS

ups.power.nominal: 1000

ups.productid: 1007

ups.serial: FW-2263 E

ups.status: OL CHRG

ups.timer.shutdown: 65535

ups.vendorid: 09ae

ups.watchdog.status: 0

Thanks to everyone that helped.

Ray


From: nut-upsuser-bounces+rgarza28=utpa.edu at lists.alioth.debian.org [mailto:nut-upsuser-bounces+rgarza28=utpa.edu at lists.alioth.debian.org] On Behalf Of Arnaud Quette
Sent: Monday, July 12, 2010 2:44 AM
To: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] FW: connection lost


2010/7/11 Arjen de Korte <nut+users at de-korte.org<mailto:nut%2Busers at de-korte.org>>
Citeren Ray Garza <rgarza28 at utpa.edu<mailto:rgarza28 at utpa.edu>>:
Ok, I commented out the ACL settings in the upsd.conf file and set to Listen 127.0.0.1 3493 and restarted NUT. Now the syslog shows this:

Jul 10 10:58:45 bidfax upsd[6049]: REJECT in upsd.conf is no longer supported - switch to LISTEN

Minor issue. Neither ACL, ACCEPT or REJECT should be in upsd.conf anymore.

Jul 10 10:58:45 bidfax usbhid-ups[6048]: Startup successful
Jul 10 10:58:45 bidfax upsd[6049]: not listening on 127.0.0.1 port 3493

Make sure there is no other instance of upsd running and that you have full access to the localhost / 127.0.0.1 socket. This often isn't the case if you're running a virtualized system.


Also note that /etc/default/nut has been replaced by /etc/nut/nut.conf
putting "MODE=standalone" should suit your needs.

cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20100712/abc9117a/attachment.htm>


More information about the Nut-upsuser mailing list