From: Brad Y. <br...@ha...> - 2009-08-26 03:17:08
|
When I am trouble shooting an internet problem I start at the furthest point and work closer. 1. Ping google.com (reply - working, no reply - no google.com probably no internet) 2. Ping ISP DNS server (reply - google.com name not being resolved, no reply - no internet or problem with workstation) 3. Ping gateway (reply - no internet, no reply - internet probably fine, problem with router or local workstation) 4. Ping local IP (reply - probably router is down, no reply - problem with local machine, internet, router, DNS are probably fine) Just a thought to find out what is really going on, maybe bad cable or crappy router, not always internet problem... Not sure if Misterhouse can determine gateway and DNS addresses, probably can. Thanks Brad > Group opinion sought... > > There is a common code module called internet_connect_check.pl... > > The description reads: "Uses ping to monitor if your internet connection > is up or down. Useful for those with cable or dsl modems that often go > down for hours at a time." > > There are NO Config params... > > Well I turned this module on for my MH installation a long time ago. As > I read the shopping list of available modules, this one was a > no-brainer... I want THAT! > > Yet it has never worked for me, so I assumed it might be broken. > > It was my expectations that were incorrect, however. I thought that MH > would tell me when the internet went down. Speak a message telling me > there was a problem... > > So I asked Sean (my coder buddy, and fellow MH user) to look into it and > he told me what he found. > > This module will ping Google.com, which is hard coded... > The state of the internet connect can be detected, but I would need my > own code to announce it, etc. > The state change happens but once when disconnected, and once again when > reconnected. > There is code within the module to announce, but it is commented out... > > He says that MH is written this way. That if you want to do something > with most modules, you need some custom code to do so... Not very user > friendly!! > > I would like to see this module work differently, but I don't want mine > to differ from everybody else. So I want you guys to agree, and we'll > all settle for the group's idea of how it oughta be... > > I propose three changes: > > 1) Make a Config parameter: Ping_address > > We can set it to google.com, as it is currently, by default. > > Some might like to ping their router instead... Making this a config > param is a no brainer... > > 2) Make a Config parameter: Announce > > This is a yes/no or perhaps a 1/0... > > So the people who currently use the module as-is can set it to NO, and > see no changes and continue to use it as it was... > > However I believe the default should be YES > > 3) Make Config parameter: Announce_frequency > > How often do you want to be reminded the internet is still down. For me > once is not enough!! > > I would want to be reminded every 15 minutes... > > So the default could be 0, and we can eliminate the second parameter I > described above. > > Sean is currently looking to add 10 lines of code to my Jack.pl to do > what I want... > > He could just as easily enhance the main module for everybody's benefit... > > So can we get some discussion on the matter? > > Thanks! > > Jack > :) > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > |