Problem with multiple contacts

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
hercross
Posts: 1
Joined: Thu Sep 03, 2015 3:38 am

Problem with multiple contacts

Post by hercross »

Hi, I have a problem with multiple contacts..

I want to send differents notifications to differents host or service..

In contacts.cfg I have created defene contact and define contactgroup (admins and prueba)
In generic_service.cfg I have created a new service with contact_groups prueba
In generic_host.cfg the same

In host.cfg, in define host, I said that use generis-host-prueba, the same in servide.cfg but doesn't works... when a host or a service is down doesn't send a notification..

If I use admins group, yes, nagiso send me notificiation to a differents email that I hace in admins groups..

I'll try too put in host.cfg contact_groups prueba, but the same, nagios doesn't send me notifications...

In nagios.log I don't see any notifications, when I use admins group, yes....

What can I test? What I make wrong?

Thanks a lot!!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with multiple contacts

Post by jdalrymple »

Just so you understand - the name of the files you're using is not relevant to what's inside it so when you tell us you put "something" in contacts.cfg then "something else" in services.cfg it's not helpful for us to troubleshoot. You could put everything in onebigfile.cfg and it would mean the same thing to Nagios.

With that said let's do this so we're a bit more clear:

copy the definition for contactgroup prueba and post it here
copy the definition for any contacts in that contactgroup that are not working for you and post that here also
copy the host and/or service definition that is not working for you and post that here
lastly describe your desired behavior and we'll explain why it's not working for you.
Locked