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
Is there a "Default" Contact Defined Somewhere?
Re: Is there a "Default" Contact Defined Somewhere?
What do you have in contacts.cfg?
Code: Select all
cat /usr/local/nagios/etc/objects/contacts.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Is there a "Default" Contact Defined Somewhere?
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
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Is there a "Default" Contact Defined Somewhere?
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.