nagios 配置中的联系人和 contact_groups

Contacts and contact_groups in nagios configuration

我可以在nagios主机和服务配置中,指定联系人和contacts_groups在一起吗?我的意思是如果我不只通知联系人或只通知组。

例如

define host{
    host_name           bogus-router
    alias               Bogus Router #1
    address             192.168.1.254
    parents             server-backbone
    check_command           check-host-alive
    check_interval          5
    retry_interval          1
    max_check_attempts      5
    check_period            24x7
    process_perf_data       0
    retain_nonstatus_information    0
    contacts                specyfic-admin
    contact_groups          router-admins
    notification_interval       30
    notification_period     24x7
    notification_options        d,u,r
    }

是的。

来自documentation

contacts: This is a list of the short names of the contacts that should be notified whenever there are problems (or recoveries) with this host. Multiple contacts should be separated by commas. Useful if you want notifications to go to just a few people and don't want to configure contact groups. You must specify at least one contact or contact group in each host definition.

contact_groups: This is a list of the short names of the contact groups that should be notified whenever there are problems (or recoveries) with this host. Multiple contact groups should be separated by commas. You must specify at least one contact or contact group in each host definition.

实际上 - 既然我复制了,我不太确定它是否正确描述了答案。

您可能还想看看 Object Inheritance

但是,简短的回答仍然是