LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-21-2007, 01:17 PM   #1
jnojr
Member
 
Registered: Sep 2007
Location: San Diego, CA
Posts: 175

Rep: Reputation: 15
Problem with apcupsd


I just installed apcupsd-3.14.2 via RPM on a RHEL3 machine. I edited
/etc/apcupsd/spcupsd.conf and started the service. It says that it
starts OK, but in /var/log/messages I get:

Dec 20 18:42:02 sddev01 apcupsd[21170]: apcupsd FATAL ERROR in pcnet.c
at line 655 Cannot bind socket (98)
Dec 20 18:42:02 sddev01 apcupsd: apcupsd startup succeeded

I saw a couple of mentions of machines reporting this but still working,
so I tried:

[root@sddev01 root]# apcaccess status
FATAL ERROR in apcaccess.c at line 41
tcp_open: cannot connect to server localhost on port 3551.
ERR=Connection refused

So... the only references I'm finding to these messages do not help. I
am not using selinux.

No firewall:

[root@sddev01 root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I also tried:

[root@sddev01 root]# apctest


2007-12-20 18:50:03 apctest 3.14.2 (15 September 2007) redhat
Checking configuration ...
Attached to driver: pcnet
sharenet.type = DISABLE
cable.type = APC_NET

You are using a SMART cable type, so I'm entering SMART test mode
Unknown mode.type: 15
Setting up the port ...
apctest FATAL ERROR in pcnet.c at line 655
Cannot bind socket (98)
^X
[root@sddev01 root]#

My config file contents:

UPSCABLE ether
UPSTYPE pcnet
DEVICE 192.168.2.7:admin:********

LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc

ONBATTERYDELAY 6

BATTERYLEVEL 5
MINUTES 3
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0

NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10

UPSCLASS standalone
UPSMODE disable

STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apcupsd - power off UPS problem eyt Linux - General 1 02-14-2006 01:28 PM
apcupsd problem JSLayton Linux - Software 1 01-24-2006 10:38 AM
apcupsd gui? PowerMatt Linux - Software 1 09-06-2004 06:14 PM
gui for apcupsd tatwell Linux - Software 2 07-14-2003 02:23 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration