I need to improve this script:
nmap -PN -p 9292 -sN 188.8.131.52 | grep "open"
I need to check connectivity to ip
192.168.15.24 on port
If the port is open, then print "port 9292 is open"
If the port is closed, then print "port 9292 is closed"
The result will be taken from icinga to do a check.