Halim Issa
2014-04-17 16:55:45 UTC
Hello,
I run apcupsd 3.14.10 (13 September 2011) on CentOS release 6.5 (Final),
and I have an APC Smart-UPS with a Network Management Card 2 (AP9631).
When trying to get apcupsd to connect over ethernet to the management card,
I get an error that it is unable to bind to the socket:
Apr 17 18:48:53 Linux apcupsd[9702]: apcupsd FATAL ERROR in pcnet.c at line
661#012Cannot bind socket (13)
I have verified that there are no other instances of apcupsd runnning, and
also no other services claiming that port. The firewall on the Linux-box
has been shut down, and I have only one simple switch between the server
and the management card. Accessing the management card of the UPS via Web
and SSH works fine and the system appears correctly configured. The
documentation refers to an earlier version of the management card, but
AP9631 is supposedly fully backwards compatible, and regardless of that it
seems the error is on the linux box, long before it reaches the card.
I would be very grateful if someone could kindly help me point out what I
have missed in order to make this work. Thank you!
grep -v "^#" apcupsd.conf |egrep -v "^\s*$"
UPSNAME SmartUPS
UPSCABLE ether
UPSTYPE pcnet
DEVICE 192.168.1.4:xxxxx:xxxx <-intentionally changed
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
I run apcupsd 3.14.10 (13 September 2011) on CentOS release 6.5 (Final),
and I have an APC Smart-UPS with a Network Management Card 2 (AP9631).
When trying to get apcupsd to connect over ethernet to the management card,
I get an error that it is unable to bind to the socket:
Apr 17 18:48:53 Linux apcupsd[9702]: apcupsd FATAL ERROR in pcnet.c at line
661#012Cannot bind socket (13)
I have verified that there are no other instances of apcupsd runnning, and
also no other services claiming that port. The firewall on the Linux-box
has been shut down, and I have only one simple switch between the server
and the management card. Accessing the management card of the UPS via Web
and SSH works fine and the system appears correctly configured. The
documentation refers to an earlier version of the management card, but
AP9631 is supposedly fully backwards compatible, and regardless of that it
seems the error is on the linux box, long before it reaches the card.
I would be very grateful if someone could kindly help me point out what I
have missed in order to make this work. Thank you!
grep -v "^#" apcupsd.conf |egrep -v "^\s*$"
UPSNAME SmartUPS
UPSCABLE ether
UPSTYPE pcnet
DEVICE 192.168.1.4:xxxxx:xxxx <-intentionally changed
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