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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

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

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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
Former Nagios employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

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

Post by neworderfac33 »

Ah - ContactS
That explains a lot!
Thanks for putting me straight.

Pete
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post 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?
Former Nagios Employee.
me.
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

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

Post by neworderfac33 »

Yep - surely can - thank you very much! :-)

Pete
Locked