Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

crefeld

Reviews(1)
bycrefeld, April 7, 2015
Thanks for this helpful tool.
For some nmap-versions (e.g. nmap 5.21 on opensuse 11.4) you will have to remove an extra line with the MAC-address after the port line to get a valid result string:

PORT STATE SERVICE
177/udp open xdmcp
MAC Address: 00:30:48:11:22:33 (Supermicro Computer)

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds



As not being familiar with extended regular expressions I extended the nmap statement:

result=`/usr/bin/nmap -sU -p $port -P0 $host |grep -v MAC`

This works but feel free to find the respective expression for f_result.