linux – 有没有办法从Nagios主机组中排除特定主机?
发布时间:2020-05-23 21:48:32 所属栏目:Linux 来源:互联网
导读:我有一个Nagios服务器,其中包括许多主机组. 其中一个主机组包括一个服务器,我想排除检查一个特定的Nagios检查,但我希望它继续作为主机组的成员,以便检查主机组检查的所有其他检查. 是否有选择排除或类似的东西可以帮助我实现我的目标? 谢谢 尚未尝试使用主机
|
我有一个Nagios服务器,其中包括许多主机组.
解决方法尚未尝试使用主机,但使用主机组,前缀为!作品.我使用它来在繁忙的服务器上运行不同的负载检查:define host {
use physical-host
host_name busy-host.example.com
alias busy-host.example.com
address 10.43.16.1
hostgroups linux,centos,ldap,http,busy
}
define host {
use physical-host
host_name normal-host.example.com
alias narmal-host.example.com
address 10.43.1.1
hostgroups linux,dns,proxy,hp,puppetmaster
}
define service {
use generic-service
hostgroup_name linux,!busy
service_description Load
check_command check_snmp_load
}
define service {
use generic-service
hostgroup_name busy
service_description Load
check_command check_snmp_load_busy
} (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
