Page 1 of 1

IP's exclusions in Nagios XI Auto-discovery

Posted: Mon Jun 17, 2019 9:09 am
by nfrank
Hi, I used Auto-discovery to find out host in subnets but something did wrong.
I used the following parameters:

Scan Target: 10.25.0.0/16
Exclude IPs: 10.25.0.0-10.25.31.255, 10.25.33.0-10.25.34.255, 10.25.37.0-10.25.44.255, 10.25.46.0-10.25.255.255

Is it correct the list of IPs exclusions?

Thank you in advance!

Re: IP's exclusions in Nagios XI Auto-discovery

Posted: Mon Jun 17, 2019 9:36 am
by scottwilkerson
You would want this for the excludes
Exclude IPs:

Code: Select all

10.25.0.0/24,10.25.33.0/24,10.25.37.0/24,10.25.46.0/24

Re: IP's exclusions in Nagios XI Auto-discovery

Posted: Mon Jun 17, 2019 10:22 am
by nfrank
To be correct, I would scan (for example) the subnet 10.25.0.0/16 excluding these ranges:

from 10.25.0.0 to 10.25.31.255
from 10.25.33.0 to 10.25.34.255
from 10.25.37.0 to 10.25.44.255
from 10.25.46.0 to 10.25.255.255

The result of the subnets scan should be:
10.25.32.0/24
10.25.35.0/24
10.25.36.0/24
10.25.45.0/24

Is this correct? How I can these values into the Nagios Auto-discovery?
Thank you!

Re: IP's exclusions in Nagios XI Auto-discovery

Posted: Mon Jun 17, 2019 10:34 am
by scottwilkerson
Sorry, I mis-read your post, exclude would be:

Code: Select all

10.25.0.0/19,10.25.33.0/24,10.25.34.0/24,10.25.37.0/24,10.25.38.0/24,10.25.39.0/24,10.25.40.0/22,10.25.44.0/24,10.25.46.0/24,10.25.47.0/24,10.25.48.0/20,128.25.64.0/18,128.25.128.0/17

Code: Select all

http://www.subnet-calculator.com/subnet.php?net_class=B
or, you run the scan on

Code: Select all

128.25.32.0/20
and exclude

Code: Select all

10.25.33.0/24,10.25.34.0/24,10.25.37.0/24,10.25.38.0/24,10.25.39.0/24,10.25.40.0/22,10.25.44.0/24,10.25.46.0/24,10.25.47.0/24