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.
Regex exclusion for Nagios XI Deadpool
Re: Regex exclusion for Nagios XI Deadpool
This is what works for me:
Try that and let us know the results.
Code: Select all
.*pc1.mydomain.bizRe: Regex exclusion for Nagios XI Deadpool
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
Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Regex exclusion for Nagios XI Deadpool
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*
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
Yep, that's works for me.
Re: Regex exclusion for Nagios XI Deadpool
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.
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
I apologize, I misread your last message, the service filter is based on the service description.
Re: Regex exclusion for Nagios XI Deadpool
Ok, it's working now, based on the description (which is much easier actually).
Re: Regex exclusion for Nagios XI Deadpool
That's great to hear, are we okay to mark this as resolved and lock the topic?