Nagios可以添加多個contact_group嗎?
有一個需求,Nagios監控兩個不同的線路,分別是到UK和到德國的,現在想如果UK出了問題報告給A@a.com這個人,GE德國出現問題郵件報告給B@b.com這個人。
Nagios配置文件里contact_groups定義的是組,這一塊可以直接定義為聯繫人嗎? use generic-switch1 ; Inherit default values from a template
host_name CC2UK
alias CC to UK VPN
address 172.24.1.2
hostgroups VPNUK
contact_groups ukadmins
}
define host{
use generic-switch1
host_name CC2GE
alias CC to GE VPN
address 172.19.0.2
hostgroups VPNUK
contact_groups ukadmins
notification_options d,u,r還有,我看到contacts.cfg中有說明,只能定義一個組,這個裡面可以定義多個組嗎,以實現上面的需求。# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.
《解決方案》
非常複雜,我來看看