NSCA server bind failure

Steve Shipway s.shipway at auckland.ac.nz
Mon Jan 24 04:13:03 CET 2005


Richard Baker wrote:
On the return page from srvcheck.cgi I get "Error: Server closed connection
before init packet was received Error: Could not read init packet from
server" and in /var/log/messages I get: "Network server bind failure (98:
Address already in use)".  I have mapped port 5667 to nsca in /etc/services
and netstat -anp | grep 5667 reveals nothing else trying to use that port.
The web page, cgi and NSCA are all on the same server as nagios.  NSCA is
running under xinetd. 

And I replied thusly:
 
Sounds as if you have missed out the essential --inetd parameter.  
 
service nsca
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = nagios
        group           = nagios
        server          = /u01/nagios/bin/nsca
        server_args     = -c /u01/nagios/etc/nsca.cfg --inetd
        disable         = no
#        only_from       = <ipaddress1> <ipaddress2> ...
        only_from = 130.216.4.0
        instances = UNLIMITED
        # conn. per sec, seconds to disable for when exceeded
        cps = 60 10
}
 
Steve

---
Steve Shipway: ITSS, University of Auckland
Email: s.shipway at auckland.ac.nz  Web: http://www.steveshipway.org/ 
** We can only discover new oceans when we have the **
** courage to lose sight of the shore.              ** 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050124/354050d1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Steve Shipway.vcf
Type: text/x-vcard
Size: 154 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050124/354050d1/attachment.vcf>


More information about the Users mailing list