我已经在我的RHEL6.4(X64)机器上安装了Nagios。我又为一些中央监控solution.so添加了一个名为" NSCA“的模块名,在xinetd下设置需要添加NSCA服务详细信息。
我已经在RHEL6服务器上使用yum安装了xinetd包。
我按照设置在/etc/xinet.d目录下添加了NSCA文件。找到下面,
# 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
}此外,我还在/etc/service中添加了端口细节,如下所示
nsca 5667/tcp # NSCA当我重新启动xinetd服务时,我在/var/log/message中得到如下错误消息,如下所示,
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.有人能告诉我我的设置有什么问题吗?
发布于 2013-08-07 08:50:46
绑定失败(已在使用的地址(errno = 98))。service = nsca
指示端口(5667)已在使用。
检查nsca是否已经在运行。试试netstat -tuan,看看是否还有其他的端口在使用。验证/etc/xinet.d中没有nsca文件的副本,以便xinetd尝试启动它两次。
https://unix.stackexchange.com/questions/85781
复制相似问题