Comments on Simple Bash Script To Monitor Your Webserver Remotely On Different Ports

Simple Bash Script To Monitor Your Webserver Remotely On Different Ports Simple bash script to monitor a webserver on different ports (here smtp, dns, http & https but it can be customized); I'm sure there are over 100 available programs doing this but I wanted something with small memory usage. Also, I only wanted to be notified once, notifications are received by SMS on my cell. With the software I was using before, I was getting notified every minute until I could reach a computer and fix the problem or stop monitoring which was quite annoying.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Robert de Bock

As a good practice; This script can be run by any user, better not use root for it.

By: Anonymous

i think following option is best instead of "echo quit | telnet server 80 | grep Connected"

nc -vw1 google.com 80