How to create a script for ISP connection check

Discussion in 'Programming/Scripts' started by rytec, Jan 14, 2011.

  1. rytec

    rytec New Member

    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?
     

Share This Page