简体   繁体   English

在客户端上使用 check_mk_agents 检查服务或主机的可用性

[英]Use check_mk_agents on clients to check availability of a service or host

I hope it's ok to ask rather a settings question instead of a coding-question here.我希望在这里问一个设置问题而不是一个编码问题是可以的。

We are using CheckMK now to monitor some of our services/ servers.我们现在使用 CheckMK 来监控我们的一些服务/服务器。 We want to use a bunch of clients (in this case raspberry pis, about 150 of them in total) to check if a service is available to them.我们想使用一堆客户端(在本例中为 raspberry pis,总共大约 150 个)来检查他们是否可以使用服务。

The Check-MK server monitors 3 of our servers and several raspberries with the standard deb-package installed on them. Check-MK 服务器监控我们的 3 台服务器和几个安装了标准 deb 包的树莓。 Now we see if a server is available and if an rpi is available.现在我们看看服务器是否可用以及 rpi 是否可用。 We would like to monitor, if the monitored servers are available from the rpi too.我们想监控,如果被监控的服务器也可以从 rpi 获得。 Not just from the Check-MK server.不仅来自 Check-MK 服务器。 Reason: The Network is quite big and it is possible that the monitoring-server and the servers which are monitored can communicate, but some rpis are not able to connect to services on those servers.原因:网络很大,有可能监控服务器和被监控的服务器可以通信,但是一些rpi无法连接到那些服务器上的服务。 We want to track down the connection-issues.我们想追踪连接问题。 They seem to be firewall/ hardware related.它们似乎与防火墙/硬件有关。 So basically I try to use a agent/ client to ping something and report this to check_mk.所以基本上我尝试使用代理/客户端来 ping 某些东西并将其报告给 check_mk。 Is this possible?这可能吗? I had no luck finding a rule or a setting for this which would be suitable.我没有找到合适的规则或设置。

Maybe we need a custom API-CALL/ Skript for this?也许我们需要一个自定义的 API-CALL/Skript 来做这个?

Thanks in advance Exa在此先感谢 Exa

You could use a local check , that just does a ping from a raspberry to a server or vice versa.您可以使用本地检查,它只是从树莓派 ping 到服务器,反之亦然。
Or maybe even easier and with a lot more information: Take a look at the MTR (Matt's Traceroute) plugin for the Checkmk agent.或者甚至更简单,并提供更多信息:查看 Checkmk 代理的 MTR(Matt 的 Traceroute)插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM