Build precise queries to find exactly what you need
Press ESC to close
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.
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!