【问题标题】:send_nsca not working on Amazon EC2 Ubuntu microinstancesend_nsca 无法在 Amazon EC2 Ubuntu 微实例上运行
【发布时间】:2014-07-21 16:31:49
【问题描述】:

安装 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)的安全组。

有什么想法吗? 谢谢,

【问题讨论】:

    标签: ubuntu amazon-ec2 amazon nagios


    【解决方案1】:

    我发现了问题,是 test_nsca 文件中的元素用空格而不是制表符分隔的。

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 2015-03-18
      • 2017-12-02
      • 1970-01-01
      • 1970-01-01
      • 2017-04-27
      • 2016-06-25
      • 1970-01-01
      • 2015-10-25
      相关资源
      最近更新 更多