gpt4 book ai didi

ubuntu - send_nsca 无法在 Amazon EC2 Ubuntu 微实例上运行

转载 作者:行者123 更新时间:2023-12-04 19:03:20 24 4
gpt4 key购买 nike

安装 Nagios Core 后,按照以下步骤安装 nsca:

http://nagios.sourceforge.net/download/contrib/documentation/misc/NSCA_Setup.pdf

从 localhost 测试 send_nsca 时

./send_nsca localhost -c ../sample-config/send_nsca.cfg /usr/local/nagios/etc/test_nsca

其中 test_nsca 是一个文本文件,其中包含:
localhost TestMessage 0 This is a test message.

回应是:
0 个数据包成功发送到主机。

系统日志显示:
Jul 21 16:10:47 ip-172-31-46-129 nsca[19462]: Connection from 127.0.0.1 port 738
Jul 21 16:10:47 ip-172-31-46-129 nsca[19462]: Handling the connection...
Jul 21 16:10:47 ip-172-31-46-129 nsca[19462]: End of connection...

它不使用端口 5667,而是每次使用不同的端口。
我有一个从任何主机打开所有端口(TCP 和 UDP)的安全组。

任何想法?
谢谢,

最佳答案

我发现了问题,它是对 test_nsca 文件中的元素执行的,其中由空格而不是制表符分隔。

关于ubuntu - send_nsca 无法在 Amazon EC2 Ubuntu 微实例上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24870110/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com