如何监视Windows服务 [英] How to monitor Windows services

查看:120
本文介绍了如何监视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.

这篇关于如何监视Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆