newb again how to exclude ports on an auto-discovery

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tonyroth
Posts: 18
Joined: Tue Mar 11, 2014 12:16 pm

newb again how to exclude ports on an auto-discovery

Post by tonyroth »

I'd like to exclude the common ports\services from being scanned, as in I don't care about rdp,netbios etc? So is there a file that I can edit etc?
thanks
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: newb again how to exclude ports on an auto-discovery

Post by sreinhardt »

At this point there isn't really a great way to do this. You could modify /usr/local/nagiosxi/html/includes/configwizards/autodiscovery/autodiscovery.inc.php and see if you can make it do what you want, but remember that if you extend it beyond the default 1024 ports it scans right now, it could take significantly longer to run.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
tonyroth
Posts: 18
Joined: Tue Mar 11, 2014 12:16 pm

Re: newb again how to exclude ports on an auto-discovery

Post by tonyroth »

darn but ok thanks!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: newb again how to exclude ports on an auto-discovery

Post by slansing »

Yeah, as srienhardt mentioned there is not something in the web interface to selectively disable specific ports from being scanned and brought in, it should not be too hard to edit the wizard's php though.
Locked