NSCA connection troubles
Posted: Fri Apr 26, 2013 9:04 am
Hello,
I've been trying to get NCSA working for some time, but it seems really hard to get it running smoothly.
After following the procedure described in http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
This is the content of my ncsa file :
# default: on
# description: NSCA (Nagios Service Check Acceptor)
service nsca
{
flags = REUSE
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nsca
server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd
log_on_failure += USERID
disable = no
only_from = xx.xx.18.70 xx.xx.17.27 xx.xx.8.14
}
I installed the NagEventlog software on my WIndows server. The encryption is set to none and the password is correct on the client and server. There is no firewall between the servers or on the servers.
Executing a netstat gives the following result:
[root@server /]# netstat -aunt
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5667 0.0.0.0:* LISTEN
...
So it seems to listen on port 5667, but still when trying to do a telnet or executing a test NSCA daemon or even testing with a send_nsca, I always get a "Could not open a connection to host on port 5667"
Any help is very much appreciated. Monitoring Windows event logs is something we reall need. We already ordered the Nagios XI license, I should receive it in about two weeks. I restarted xinetd, the Nagios XI server and the Nagios Eventlog service on the client.
Willem
I've been trying to get NCSA working for some time, but it seems really hard to get it running smoothly.
After following the procedure described in http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
This is the content of my ncsa file :
# default: on
# description: NSCA (Nagios Service Check Acceptor)
service nsca
{
flags = REUSE
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nsca
server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd
log_on_failure += USERID
disable = no
only_from = xx.xx.18.70 xx.xx.17.27 xx.xx.8.14
}
I installed the NagEventlog software on my WIndows server. The encryption is set to none and the password is correct on the client and server. There is no firewall between the servers or on the servers.
Executing a netstat gives the following result:
[root@server /]# netstat -aunt
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8022 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5667 0.0.0.0:* LISTEN
...
So it seems to listen on port 5667, but still when trying to do a telnet or executing a test NSCA daemon or even testing with a send_nsca, I always get a "Could not open a connection to host on port 5667"
Any help is very much appreciated. Monitoring Windows event logs is something we reall need. We already ordered the Nagios XI license, I should receive it in about two weeks. I restarted xinetd, the Nagios XI server and the Nagios Eventlog service on the client.
Willem