Page 2 of 3
Re: contact_groups not working
Posted: Fri Nov 22, 2013 10:52 am
by colinjack
I know you are certainly more knowledgeable than me on this, that is why I am on here
This is very odd ... it just seems to ignore the contact_groups setting for the 2nd group.
I will report back with my findings - hopefully positively.
Have a good weekend.
Colin
Re: contact_groups not working
Posted: Fri Nov 22, 2013 12:12 pm
by abrist
colinjack wrote:
Have a good weekend.
We will. Hope you have an enjoyable one as well.

Re: contact_groups not working
Posted: Fri Nov 22, 2013 2:12 pm
by colinjack
Well this has really got weird!
I have been ignoring the production Nagios box as to all intents and purposes it is working fine apart from this situation with the second contact group.
The linuxremote.cfg has about 20 other linux servers and they all report correctly to the admins group and email me at my normal email address within 5 minutes of a problem.
Now - I have just had an email through to my iCloud address (test contact group) from 09.40 this morning telling me the Test Server was down ... by 9am this morning it had been down for about 12 hours! Doh!
Just the one notification mind. Nothing before or since to either contact group.
So I thought I would change the test server IP to a live one and see what happens. Nagios registered it was up but no notifications to either contact group. Turned off SMTP and within 5 minutes I received a notification to the admins group but nothing to the test group. This really doesn't make a lot of sense.

Re: contact_groups not working
Posted: Fri Nov 22, 2013 2:49 pm
by colinjack
Could someone test this out for me on a 4.0.1 server?
Just create a new test contact, test contact group and test server as I have done and set the test contact group for the test server. Then kill services and see what happens.
I would be very interested to see if it works for you - or whether you can reproduce the weirdness!

Re: contact_groups not working
Posted: Fri Nov 22, 2013 3:31 pm
by slansing
Are you routing through an exchange of some sort? It is very odd that you suddenly received ONE notification from that other contact group, is there something on the iCloud side that could be holding this back?
Re: contact_groups not working
Posted: Fri Nov 22, 2013 3:49 pm
by colinjack
slansing wrote:Are you routing through an exchange of some sort? It is very odd that you suddenly received ONE notification from that other contact group, is there something on the iCloud side that could be holding this back?
No - it is not even being triggered. I have been watching the maillog and the notifications log in Nagios.
That is just plain bizarre.
It is just using the second contact group that is dodgy - all the rest works like a dream. If I allow the template default contact group (admins) on a server works fine.
It would be interesting to see if someone else followed my test procedure to see what happens.
Re: contact_groups not working
Posted: Sat Nov 23, 2013 12:24 pm
by colinjack
Test rig does exactly the same!

Re: contact_groups not working
Posted: Mon Nov 25, 2013 12:05 pm
by sreinhardt
One thing I did note with all of your hosts and contacts that were created, is that notification options are never set, unless they are pulled from templates inherited from groups that might be causing some issues. Let's try setting them and seeing if that begins notifying as you would expect.
Re: contact_groups not working
Posted: Mon Nov 25, 2013 12:10 pm
by colinjack
sreinhardt wrote:One thing I did note with all of your hosts and contacts that were created, is that notification options are never set, unless they are pulled from templates inherited from groups that might be causing some issues. Let's try setting them and seeing if that begins notifying as you would expect.
So remove the default one from the template? Could be a bit of a pain if I have to set them all explicitly

- will try it on one small host group and see what happens. Thanks for the help.
Colin
Re: contact_groups not working
Posted: Mon Nov 25, 2013 12:38 pm
by lmiltchev
The notification options don't need to be necessarily defined on a host/service/contact level - they can be pulled from the template that is used. I believe sreinhardt was trying to tell you that it is not clear from what you showed us that notification options are set at all. We need to see the template that is in use.