Build precise queries to find exactly what you need
Press ESC to close
let’s simple check for ssh-port 22
this is the part of code used – then it looks if there is at least ONE line
netstat -an | grep LISTEN | grep 22
result: *.22 *.* 0 0 49152 0 LISTEN *.22 *.* 0 0 49152 0 LISTEN *.11221 *.* 0 0 49152 0 LISTEN *.11222 *.* 0 0 49152 0 LISTEN *.22 *.* 0 0 49152 0 LISTEN
(you get any line containing “22” not only where the PORT is 22!!
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!