I need to improve this script:
nmap -PN -p 9292 -sN 192.68.12.14 | grep "open"
I need to check connectivity to ip 192.168.15.24
on port 9292
.
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.
Any idea?