如何监视Windows服务

如何监视Windows服务

问题描述:

我正在寻找一种监视某些Windows服务(在Windows Server 2003上)并必要时重新启动 y的方法.这些服务位于不同的服务器上,主要包括SQL Server服务(例如SQL Server代理),还包括一些专有服务.

I'm looking for a way to monitor certain Windows services (on Windows Server 2003) and restart if necessary. The services are on different servers and include mainly SQL Server services (e.g. SQL Server Agent), but also some proprietary services.

如果服务停止发送出去的电子邮件警报也将非常有用.

Email alerts sent out if a service has stopped would be very useful as well.

Windows内置了可能足够"的版本.查看服务属性的恢复"选项卡,该属性可通过services.msc访问.

A "might be enough" version of this is built into Windows. Look into the "Recovery" tab of the service properties, as available via services.msc.

您可以对服务失败采取以下措施:

You can act on a service fail with:

  • 重新启动服务"
  • 进行节目"
  • 重新启动计算机"

例如,运行程序"可能是一个发送邮件的小脚本.

"Run a program" could be a small script that sends a mail, for example.

如果您想要一个具有概述仪表板以及所有其他功能的更大解决方案,则可以使用许多系统监视解决方案.例如,想到了SolarWinds IPMonitor,Nagios或Cacti.

If you want a bigger solution with an overview dashboard and all, there are plenty of system monitoring solutions available. For example SolarWinds IPMonitor comes to mind, or Nagios, or Cacti.