Page 1 of 1

Nagios Core - specify a single contact for a host or service

Posted: Tue Aug 25, 2015 9:34 am
by neworderfac33
Good afternoon,

The following works fine:

Code: Select all

define host{
        use             windows-server
        host_name       FIRSTSERVERNAME
        alias           Dev-Jenkins
        address         88.88.88.88
        hostgroups      windows-servers
        contact_groups  admins
}
but what about if I just want emails for this host to go to a single individual?
Do I have to set up a new contact group consisting of just that individual and reference it here, or is there any way in which I can reference the individual directly without having to create a contact group?

Cheers

Pete

Re: Nagios Core - specify a single contact for a host or ser

Posted: Tue Aug 25, 2015 10:04 am
by tmcdonald
Not sure where you read that you need to use a group, but the contacts parameter will work for single contacts, or comma-separated lists:

https://assets.nagios.com/downloads/nag ... .html#host

Re: Nagios Core - specify a single contact for a host or ser

Posted: Tue Aug 25, 2015 10:10 am
by neworderfac33
Ah - ContactS
That explains a lot!
Thanks for putting me straight.

Pete

Re: Nagios Core - specify a single contact for a host or ser

Posted: Tue Aug 25, 2015 10:22 am
by hsmith
peterooney wrote:Ah - ContactS
That explains a lot!
Thanks for putting me straight.

Pete
Are we all right to close this one out?

Re: Nagios Core - specify a single contact for a host or ser

Posted: Tue Aug 25, 2015 10:56 am
by neworderfac33
Yep - surely can - thank you very much! :-)

Pete