Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 14th January 2011, 10:05
rytec rytec is offline
Junior Member
Join Date: Mar 2009
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default How to create a script for ISP connection check

I would like to make a script which can check my ISP connection, I have a dynamic IP and it seems that lately it often gets changed.
So I thought of making a script which does a NSlookup and send this to my root address.
But it would be better if it only does this when it notice a disconnect otherwise I get loads of messages.
I use a watchguard firewall and behind this I have my Ubuntu server which is also the DNS and DHCP server for my internal LAN.
My watchguard makes a DSL connection with my bridged DSL modem.
Also the watchguard has a logging system and I send the syslog to my ubuntu server but it's too much work to look everyday into this whole logfile system.
Or would it be better to look into this logging files and search for a specific description and send only this to my root mail?
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47
squirrelmail and postfix witoszek General 12 1st December 2009 19:07
Debian Lenny apt-get update failed to fetch qriz Installation/Configuration 3 31st October 2009 23:19
Mail not working epicuniversal General 5 13th June 2009 09:24
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36

All times are GMT +2. The time now is 22:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.