in reply to Need help writing a basic network monitor.

the state (and lots of other useful info) for your adapter is available via a MIB lookup. use Net::Snmp or similar, rather than wasting bandwidth with pings. also note that for ping you're also testing the destination server and all (internet) circuits that run up to it...not just your connection to the internet.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: Need help writing a basic network monitor.