本文介绍了定期进行大规模服务监测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取大量服务器上的服务状态,以便计算正常运行时间百分比。我可能需要使用多个服务器来进行检查。有人知道一个可靠的方法来排队他们在特定的时间/间隔检查?

I need to get the status of services across a large number of servers in order to calculate uptime percentages. I may need to use multiple servers to do the checking. Does anyone know of a reliable way to queue them to be checked at a specific time/interval?

我在PHP编写应用程序,但我开放使用其他语言和工具。我唯一的要求是它必须在Linux上运行。

I'm writing the application in PHP, but I'm open to using other languages and tools for this. My only requirement is that it must run on Linux.

我已经研究了Gearman的工作队列,但我还没有找到任何效果很好。

I've looked into things like Gearman for job queuing, but I haven't found anything that would work well.

推荐答案

为了获得服务的正常运行时间百分比,您可以执行命令来检查服务的状态,并记录它们以进行进一步的分析/计算。以下是一些做同样的方法:

Inorder to get uptime percentages of your services you can execute commands to check status of services and log them for further analysis/calculations. Following are some of the ways of doing same:


  1. 系统命令如 top free -m vmstat iostat iotop sar netstat 您正在分析/调试问题。

  2. :这些命令可让您清楚了解服务器内部的情况。代理执行#1中提到的所有命令和自定义命令。这些命令的输出可以在漂亮的Web界面中访问。当您在数百台服务器上工作时,此工具非常方便,因为安装很简单。它的免费

  3. :它是所有监控/警报工具。这是非常可定制,但很难为初学者设置。

  4. 服务器密度:这是一项基于云的付费服务,可收集重要的Linux指标,并使用户能够编写自己的插件

  5. New Relic:另一个众所周知的托管监控服务。

  6. Zabbix

  1. System commands like top, free -m, vmstat, iostat, iotop, sar, netstat etc. Nothing comes near these linux utility when you are analysing/debugging a problem. These commands give you a clear picture of what is going inside your server
  2. SeaLion: Agent executes all the commands mentioned in #1 and custom commands as well. Outputs of these commands can be accessed in a beautiful web interface. This tool comes handy when you are working across hundreds of servers as installation is clear simple. And its FREE
  3. Nagios: It is the mother of all monitoring/alerting tools. It is very much customizable but very difficult to setup for beginners. Although there are some nagios plugins.
  4. Munin
  5. Server density: A cloudbased paid service that collects important Linux metrics and gives users ability to write own plugins.
  6. New Relic: Another well known hosted monitoring service.
  7. Zabbix

这篇关于定期进行大规模服务监测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 15:28