Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我管理着几个不同的 vSphere 基础架构,我必须每天检查它们是否有警报。
我正在编写一个 C# 应用程序,我可以运行它来检查它们并发送一封电子邮件,通知我任何已触发的警报。
如何在 c# 中获取此信息?
这应该已经内置到 vCenter Servers SMTP 代理中,因此您应该能够设置警报操作以在警报触发时发送自动电子邮件。我不确定您使用的是什么版本,但请查看 VMWare 网站上的文档:
http://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp#working_with_alarms/c_email_notifications_as_alarm_actions.html