Menu Close

sconn : Socket Connectivity Monitoring

Today, most enterprise systems are complex, requiring several systems to implement services, thereby creating several system interfaces. A basic monitoring requirement is to check if the system stack is broken. i.e. whether system interfaces are broken. Although almost all software products have some sort of "health monitor" to test connectivity with an interfacing system, it can be handy to have a standard utility to test all interfaces. Well, there is the wonderful "netcat" utility which can easily meet this requirement. Unfortunately, netcat is not standard on all UNIX systems (e.g. Solaris) and you may have constraints (e.g. company policy) which prevent you from installing netcat.

sconn is a simple korn shell script which helps you monitor socket connectivity for system interfaces. It’s basically a wrapper around a perl script which tests the connectivity. A simple script in perl alone would have sufficed, but as I’m not familiar with perl, I used the korn shell to meet my requirements. More people will be familiar with shell scripting than with perl and so if others have similar requirements, sconn could be used as-is or tweaked.

How sconn works:

sconn.png

 

Screenshots:

(1) Configuration

Configuring sconn

(2) Execution

Executing sconn 

(3) Output

sconn output files

Recommendations:

  • Execute sconn regularly as a cron job for continual monitoring.
  • Feed sconn data and/or statusnow files to a dashboard or graphing program.

 

Version 1: Last updated – 22:56 GMT, 24th November 2009

Download sconn v1.0

 

NOTE:

(1) sconn has been scanned and is safe to download.

(2) sconn has been tested. If you wish to use sconn, I recommend you also test it before deploying it on a Production system.

(3) Your rating of this post/software will be greatly appreciated. Also, feel free to leave comments.

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
Print Friendly, PDF & Email
(Visited 121 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *