I've installed the Nagios on My RHEL 6.4(x64) machine. and i added one more module name called "NSCA" for some central monitoring solution.so the setup required add NSCA service detail under xinetd.
I've installed the xinetd package using yum on RHEL6 server.
I added the NSCA file under /etc/xinet.d directory as per the setup. find the below,
# 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/nsca.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1 129.221.8.95
}
also I added port detail in /etc/service like below
nsca 5667/tcp # NSCA
when I restart the xinetd service, I'm getting following error message in /var/log/message like below,
Aug 7 11:52:54 rhel6 xinetd[13140]: Reading included configuration file: /etc/xinetd.d/nsca [file=/etc/xinetd.d/nsca] [line=67]
Aug 7 11:52:54 rhel6 xinetd[13140]: bind failed (Address already in use (errno = 98)). service = nsca
Aug 7 11:52:54 rhel6 xinetd[13140]: Service nsca failed to start and is deactivated.
Can someone tell me what is wrong with my setup?