特定主机的Nagios服务通知 [英] Nagios service notifications for specific hosts
问题描述
使用Nagios,我希望能够在特定主机上的服务失败时向用户发送通知.但是,另一台主机上的那些相同服务应该使其他人警觉.
例如:
"HostA"已启动,但"HostA"上的"www"服务已关闭->通知UserA "HostB"已启动,并且"HostB"上的"www"服务已启动->未通知用户B
换句话说...如果HostA上的WWW服务关闭,则仅应通知UserA,但是如果HostB上的WWW服务关闭,则由UserB负责.
我可以轻松地将用户A分配给主机A和/或www服务,但是我希望用户A负责主机A,和负责主机A上运行的所有服务. /p>
想法?
将UserA分配给HostA作为联系人. 不要为HostA的服务定义/分配任何联系人.然后,服务将继承主机的联系信息.请参见文档表中的第一行:
(可选)您可以将联系人放入联系人组.
Using Nagios, I want to be able to send a user notifications when the services on a specific host fail. Yet those same services on another host should alert somebody else.
For instance:
"HostA" is up, but "www" service on "HostA" is down --> Notify UserA "HostB" is up, and "www" service on "HostB" is up --> UserB is not notified
In other words... if the WWW service on HostA is down, only UserA should be notified, but if the WWW service on HostB is down, then UserB is responsible for it.
I can easily assign User A to Host A and/or to the www service, but I want user A to be responsible for Host A, and for all the services running on Host A.
Ideas?
Assign UserA to HostA as the contact. Don't define/assign any contacts to the services for HostA. Then the services will inherit the contact info for the Host. See the first line in the table in the docs:
Optionally, you can put the contact into a contactgroup.
这篇关于特定主机的Nagios服务通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!