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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
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.
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!
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?
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.
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.
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.
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!