On Oct 5, 2009, at 2:09 PM, James Pratt wrote:

> Well, look on the bright side - It's not that big of a perl script -  
> you can likely modify it to suit your specific need(s).  :)

and it appears to be a very very trivial change to boot (but will  
break some functionality without further changes)...

If the OP only cares about the functionality of the plugin to check  
the open/closed status of listed ports, he can simply change
     @nmap_raw = `$nmap_path -P0 -p1-65535 $scan_address`;

to

     @nmap_raw = `$nmap_path -P0 -p$allowed_ports $scan_address`;

You can expect this to break other functionality of the plugin like  
full host scans, etc, but I believe that this is what the OP is  
looking for given this further information.

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to