【发布时间】:2018-12-03 10:47:52
【问题描述】:
服务已在远程节点上启动并运行。 CLI 执行返回 OK,但在 UI 中返回带有状态信息的 CRITICAL:'返回代码 7 超出范围'
nagios-xxxxxxxx:~# /usr/lib/nagios/plugins/check_tcp -H hostname -p <port> -w 5 -c 10 -t 60
TCP OK - 0.002 second response time on hostname port XXXXXXX|time=0.001642s;5.000000;10.000000;0.000000;60.000000
有人可以帮我解决吗?
Nagios 日志:
[XXXXXXX] Warning: Return code of 7 for check of service 'XXXXXXX' on host was out of bounds.
[XXXXXXX] Warning: Return code of 7 for check of service 'XXXXXXX' on host was out of bounds.
[XXXXXXX] Warning: Return code of 7 for check of service 'XXXXXXX' on host was out of bounds.
[XXXXXXX] Warning: Return code of 7 for check of service 'XXXXXXX' on host was out of bounds.
[XXXXXXX] Warning: Return code of 7 for check of service 'XXXXXXX' on host was out of bounds.
【问题讨论】:
-
@Rohlik 感谢您的 cmets。我尝试使用页面上提供的选项,但我没有看到任何 +ve 结果来清除错误警报。我解决了这些问题。实际上问题在于 nagios 服务器上的重复服务配置: location:: /etc/nagios4/objects/services/ 从该位置清除重复的服务配置并重新加载 nagios 服务。问题已解决。
标签: nagios