Internet Connectivity Monitor Script

November 26th, 2007 by Ahmed S. Farghal Leave a reply »

I was assigned to monitor the link status here in the company because we had many problems regarding our new TEData internet line. We couldn’t calculate exactly when the line is down and up, so I wrote a small script to run as a cronjob to create a log for the internet connectivity status.

The script is quite useful and very light, it’ll generate a log about your internet connectivity and will try to detect the reason of the internet connectivity problems.

Note: you’ll need to change the value of the variable GATEWAY_IP to your gateway/router/dsl_modem IP address before running the script. And you don’t have to be root to run this script.

you can download it from this link

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Slashdot
  • StumbleUpon
  • DZone
  • PDF
  • Reddit
  • RSS
  • Twitter
Advertisement

2 comments

  1. Neo says:

    3awez a2oloko en el script da bey’7ally el net maye2ta3sh, aslo men sa3et ma ahmed 7atto wel net ma wa2a3etsh :)

  2. Ayman says:

    woow , good work ya ahmed basha ka el 3adah wlahe
    script fekretoh gamdah awe , be el zat 7kayet el DNS problem , Line problem , Router problem and Unknown problem :)

    ana 2retoh koloh we howa fadne fe 7agat ktear , thnx ya man for sharing

    see u soon isa , slam

Leave a Reply