Nagios Version : Nagios 5.2.0 (Manual Install)
The auto-discovery wizard is no longer detecting services when new hosts are discovered, if excluded IPs are used
This is due to the nmap command having two -exclude options set
Example
Scanning range 192.168.1.0/24 and excluding the ips 192.168.1.50 and 192.168.1.51 results in a nmap command of the following
Code: Select all
/usr/bin/nmap -O -oX /usr/local/nagiosxi/tmp/nmapR4yupk -F
--min-parallelism 20 --exclude "192.168.1.50,192.168.1.51" --exclude
"192.168.1.50 192.168.1.51"Code: Select all
Invalid character in host specification. Note in particular that square brackets [] are no longer allowed. They were redundant and can simply be removed.Also, removing the excluded IPs from the autodiscovery job will fix the issue
Could we please get a patch to fix this as we scan a number of ranges with excluded ips on a daily basis
Also, i am a NagiosXI customer and have requested access to the customer group. Could this request be actioned please.
Regards
Kevin Pascoe