如果/当TFS Build Agents脱机时路由警报 [英] Route alerts if/when TFS Build Agents goes offline

查看:98
本文介绍了如果/当TFS Build Agents脱机时路由警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,


我们使用Team Foundation Server 2015.2.1。我们使用vNext Build Agents进行自动构建和部署。为了监控Build代理状态,我想在它离线时生成警报。任何人都可以帮助我如何为
代理池创建警报。




问候,


Sumana Thakur



解决方案

Hi Sumana Thakur1,



感谢您在此发帖。



现在TFS中没有这样的功能。作为解决方法,您可以尝试根据构建代理服务的状态创建电子邮件警报,如以下链接:


https://blogs.technet.microsoft.com/jhoward/ 2010/06/16 / getting-event-log-contents-by-email-on-an-event-log-trigger /


然后你会收到一封电子邮件提醒;如果构建服务在构建代理服务器上停止。或者您可以尝试编写自己的PS脚本来实现这一目标。有关详细信息,请参阅以下主题:


https://social.technet.microsoft.com/Forums/windows/en -US / 6ee23534-01ba-454b-b823-15fb243a51f7 / how-to-send-email-msg-if-a-windows-service-stops?forum = winservergen



最好的问候


Limitxiao Gao


Hello All,

We use Team Foundation Server 2015.2.1. We use vNext Build Agents for automated builds and deployments. For monitoring the Build agents status I would like to generate an alert when it goes offline. Can anyone please help me how to create an alerts for the agent pools.

Is there any possibility to create an alert to the existing dash board web front or need to create a new dash board to generate alerts for the agent existing status.

Regards,

Sumana Thakur

解决方案

Hi Sumana Thakur1,

Thank you for posting here.

There is no such feature in TFS now. As a workaround, you could try to create an email alert based on the status of the build agent service like the following link:

https://blogs.technet.microsoft.com/jhoward/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger/

Then you will get an email alert if the build service stop on the build agent server. Or you could try to write your own PS script to achieve that. For more information, you could refer to the following thread:

https://social.technet.microsoft.com/Forums/windows/en-US/6ee23534-01ba-454b-b823-15fb243a51f7/how-to-send-email-msg-if-a-windows-service-stops?forum=winservergen

Best Regards

Limitxiao Gao


这篇关于如果/当TFS Build Agents脱机时路由警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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