Page 2 of 2
Re: Adding a new contact group
Posted: Thu Oct 20, 2016 1:00 pm
by dwhitfield
What version of Core are you using? The latest is 4.2.1, despite 4.2.0 mentioned in
https://assets.nagios.com/downloads/nag ... Source.pdf
Did you install from source? On what OS are you running Nagios Core?
Re: Adding a new contact group
Posted: Thu Oct 20, 2016 1:12 pm
by amprantino
Version 4.2.1
I think the rest don't have anything to do with Nagios features.
Re: Adding a new contact group
Posted: Thu Oct 20, 2016 3:59 pm
by dwhitfield
Whether you install from source or not will determine where files are located. The same is true of the OS. You are correct in that it is probably not pertinent to your issue, but sometimes these things turn into rabbit holes.
You can exclude hosts with the ! as you can see at
https://assets.nagios.com/downloads/nag ... ricks.html. I was unable to find reference to excluding a contact group with a !.
You can add contact groups with the + as you can see at
https://assets.nagios.com/downloads/nag ... tance.html.
You said "Yes, exactly" in reference to the issue being resolved, but then asked a question. Was the question just for informational purposes or are you still experiencing an issue?
Re: Adding a new contact group
Posted: Fri Oct 21, 2016 2:02 am
by amprantino
So +/- are working and with contact groups then.
Thank you
Off topic:
"Yes, exactly" with the above = I have solved the solution.
Then I asked a new relevant question, trying to improve the prior solution.
Re: Adding a new contact group
Posted: Fri Oct 21, 2016 11:13 am
by dwhitfield
amprantino wrote:So +/- are working and with contact groups then.
I could not find any reference to the "-", only to the "+".
Re: Adding a new contact group
Posted: Fri Oct 21, 2016 11:27 am
by amprantino
Also no reference to the !
So only a test will enlighten us
Re: Adding a new contact group
Posted: Fri Oct 21, 2016 1:09 pm
by dwhitfield
github is down (presumably the wide-spread DNS issue), so I can't point you to a public link, but the following suggests the ! should work:
Code: Select all
/* this contactgroup should be excluded (rejected) */
if(temp_ptr[0] == '!') {
If it is not working, you can file a bug report at
https://github.com/NagiosEnterprises/nagioscore (you know, once github is back up)
Re: Adding a new contact group
Posted: Fri Oct 21, 2016 4:24 pm
by amprantino
Re: Adding a new contact group
Posted: Mon Oct 24, 2016 9:20 am
by dwhitfield