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?
Adding a new contact group
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: Adding a new contact group
Version 4.2.1
I think the rest don't have anything to do with Nagios features.
I think the rest don't have anything to do with Nagios features.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Adding a new contact group
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?
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?
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: Adding a new contact group
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.
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.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Adding a new contact group
I could not find any reference to the "-", only to the "+".amprantino wrote:So +/- are working and with contact groups then.
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: Adding a new contact group
Also no reference to the !
So only a test will enlighten us
So only a test will enlighten us
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Adding a new contact group
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:
If it is not working, you can file a bug report at https://github.com/NagiosEnterprises/nagioscore (you know, once github is back up)
Code: Select all
/* this contactgroup should be excluded (rejected) */
if(temp_ptr[0] == '!') {
Last edited by dwhitfield on Mon Oct 24, 2016 9:18 am, edited 1 time in total.
Reason: can vs. can't
Reason: can vs. can't
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Adding a new contact group
Ok, here's the file in question: https://github.com/NagiosEnterprises/na ... template.c