Regex exclusion for Nagios XI Deadpool

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Regex exclusion for Nagios XI Deadpool

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by ssax »

This is what works for me:

Code: Select all

.*pc1.mydomain.biz
Try that and let us know the results.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Regex exclusion for Nagios XI Deadpool

Post 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!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Regex exclusion for Nagios XI Deadpool

Post 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*
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by ssax »

Yep, that's works for me.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Regex exclusion for Nagios XI Deadpool

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by ssax »

I apologize, I misread your last message, the service filter is based on the service description.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by thur686 »

Ok, it's working now, based on the description (which is much easier actually).
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Regex exclusion for Nagios XI Deadpool

Post by ssax »

That's great to hear, are we okay to mark this as resolved and lock the topic?
Locked