Page 1 of 1

TCP listen error - socket or bind error - RMA wont start

Posted: Wed Aug 19, 2009 9:19 am
by timn
(Alex - you already solved this for me via email so no need for you to respond here. I am just writing a quick synopsis here in case other people encounter a similar problem)

My problem was that after installing RMA for Linux , RMA would not start:

/usr/sbin/rma/rma -i -v /usr/sbin/rma/rma.ini

Result was:
-------------------------------------------------------------
Application: RMA (Remote Monitoring Agent for HostMonitor)
Version: 1.28 for Linux (Red Hat, Mandrake, SuSE)
Copyright: 2004 - 2009 Alexander Kozlov
web: http://www.ks-soft.net
e-mail: support@ks-soft.net
-------------------------------------------------------------
Command line checking .. Ok
Settings checking .. Ok
CPU testing .. Ok
Basic encyption checking .. Ok
RMA encyption checking .. Ok
Sock testing .. TCP listen error:
socket() or bind() error
I initially thought this indicated that the default TCP port (1055) was already in use on the box. But I tried several different ports - none worked.

Alex then wrote:
How many network interfaces installed on this system?
Are you sure you have specified correct IP address as Host parameter?
=====================
; Optional parameter. Can be useul when system has several network interfaces.

Host=72.32.215.114

=====================
Could you try to remove it, keep default "Host=" line?
My system did have multiple NICs. Once I remove the IP address from my RMA.INI file as Alex suggested, my RMA works fine:
[root@238010-web3 rma]# /usr/sbin/rma/rma -i -v /usr/sbin/rma/rma.ini
-------------------------------------------------------------
Application: RMA (Remote Monitoring Agent for HostMonitor)
Version: 1.28 for Linux (Red Hat, Mandrake, SuSE)
Copyright: 2004 - 2009 Alexander Kozlov
web: http://www.ks-soft.net
e-mail: support@ks-soft.net
-------------------------------------------------------------
Command line checking .. Ok
Settings checking .. Ok
CPU testing .. Ok
Basic encyption checking .. Ok
RMA encyption checking .. Ok
Sock testing .. Ok
[rma][10:07:22] rma Listening...
Thanks, Alex