Page 1 of 2

Regex exclusion for Nagios XI Deadpool

Posted: Tue Jul 12, 2016 11:46 am
by thur686
Hello, I'm attempting to exclude some hosts from the Nagios Deadpool, however the exclusion I added seems to be ignored.

I'm trying to exclude hosts & services including hostnames *pc1.mydomain.biz, using the following regex exclusion;
.*\pc1\.mydomain\.biz$

After saving the changes, hosts including pc1.mydomain.biz still appear in the deadpool.log.

So either (1) Nagios doesn't understand the regex I added or (2) adding an exclusion after a host is already in the Deadpool has no affect. It could be both actually now that I think about it.

Re: Regex exclusion for Nagios XI Deadpool

Posted: Tue Jul 12, 2016 1:36 pm
by ssax
This is what works for me:

Code: Select all

.*pc1.mydomain.biz
Try that and let us know the results.

Re: Regex exclusion for Nagios XI Deadpool

Posted: Tue Jul 12, 2016 2:43 pm
by thur686
Thanks ssax, it looks like that does work, though hosts and services that are already in the Deadpool are not removed if the exception is added after they are added. We can work around that. Thanks for the help!

Re: Regex exclusion for Nagios XI Deadpool

Posted: Tue Jul 12, 2016 2:53 pm
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?

Re: Regex exclusion for Nagios XI Deadpool

Posted: Wed Jul 13, 2016 10:25 am
by thur686
I may have spoke too soon.

Using the exclusion filter .*pc1.mydomain.biz did not prevent a service being added to the Deadpool that was named sys01122pc1.mydomain.biz_services.

Perhaps it should be .*pc1.mydomain.biz*

Re: Regex exclusion for Nagios XI Deadpool

Posted: Wed Jul 13, 2016 12:54 pm
by ssax
Yep, that's works for me.

Re: Regex exclusion for Nagios XI Deadpool

Posted: Thu Jul 14, 2016 8:37 am
by thur686
Using the exclusion filter .*pc1.mydomain.biz* did not prevent a service being added to the Deadpool that was named sys01122pc1.mydomain.biz_services either.

It appears that this exclusion filter does not work.

I assumed that the Deadpool processor is looking at the Config name and not the Description. If it's reading the description then I'll need to change the filter.

Re: Regex exclusion for Nagios XI Deadpool

Posted: Thu Jul 14, 2016 11:39 am
by ssax
I apologize, I misread your last message, the service filter is based on the service description.

Re: Regex exclusion for Nagios XI Deadpool

Posted: Fri Jul 15, 2016 8:36 am
by thur686
Ok, it's working now, based on the description (which is much easier actually).

Re: Regex exclusion for Nagios XI Deadpool

Posted: Fri Jul 15, 2016 9:13 am
by ssax
That's great to hear, are we okay to mark this as resolved and lock the topic?