Page 1 of 1

Is there a "Default" Contact Defined Somewhere?

Posted: Tue Feb 26, 2013 5:05 pm
by mmartin
Hello All,

I was wondering if there is some kind of "Default" Contact that could be defined somewhere in a Nagios Config file..?

I am testing a Service check I created using a "Test Host".
My host definition contains ONLY my email address, as well as my Service definition and Command definition too. But if I watch the log
at "/var/log/messages" I can see that it is sending the Notification to 3 Contacts including myself.

I've asked the person who setup Nagios on here and they don't remember doing anything like that. And I've also scoured through all the .cfg
files and couldn't find anything that would be causing this to happen (*that I know of...).

Anyone have any idea what "could" be happening..?
Any thoughts would be much appreciated.

Thanks,
Matt

Re: Is there a "Default" Contact Defined Somewhere?

Posted: Tue Feb 26, 2013 5:09 pm
by lmiltchev
What do you have in contacts.cfg?

Code: Select all

cat /usr/local/nagios/etc/objects/contacts.cfg

Re: Is there a "Default" Contact Defined Somewhere?

Posted: Wed Feb 27, 2013 10:22 am
by mmartin
Hey lmiltchev, thanks for the reply!

As I was writing this reply and copy and pasting EVERY definition related to this check (i.e. contact definition, notification command, host definition
and service definition)
I found the problem...

I was copy/pasting my service definition in and I realized that I have the line "use generic-service" and after checking the definition for that I
could see the 2 other email addresses getting notified are in the contactgroup defined for that contactgroup definition.

So I think I got it now...

Thanks for you reply, I probably wouldn't have realized it unless I was looking over the definitions so closely as I was copy and pasting them in...

Thanks Again for the reply,
Matt

Re: Is there a "Default" Contact Defined Somewhere?

Posted: Wed Feb 27, 2013 11:34 am
by sreinhardt
Great thanks for letting us know that it's resolved! If you do have issues I will leave this open for a day or two.