Adding a new contact group

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.
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

Post 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?
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Adding a new contact group

Post by amprantino »

Version 4.2.1
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

Post 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?
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Adding a new contact group

Post 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.
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

Post by dwhitfield »

amprantino wrote:So +/- are working and with contact groups then.
I could not find any reference to the "-", only to the "+".
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Adding a new contact group

Post by amprantino »

Also no reference to the !
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

Post 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)
Last edited by dwhitfield on Mon Oct 24, 2016 9:18 am, edited 1 time in total.
Reason: can vs. can't
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Adding a new contact group

Post by amprantino »

:lol: :lol: :lol: :lol: :lol:
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

Post by dwhitfield »

Locked