> What we're planning on doing is having a counter field. So rather than > flagging up the moment a page doesn't responsed we want the system to > let us know when it's not responded X amount of times (in case a > server is temp. down etc.)
James, If you're just looking for a way to determine if a web server is responding correctly there are much better 3rd-party services out there to solve your needs (and they are very inexpensive). Best of all they have monitoring stations around the globe. So they're not just checking from one location, but multiple locations to account for internet problems somewhere else having nothing to do with your web server. Then they have ways to contact you when your server is up or down (via email, SMS, IM, etc). I use one of these services to monitor all of my clients websites (who themselves have server around the world). Works great for my needs. Allows me to be aware of a problem and address it before the client is even aware. There is nothing more embarrassing then having your client contact you to tell you that their website is down. However, it is very professional to always be one step ahead and rewarding when you tell them of the outage and the quick fix implemented. A couple times I've had clients make internal network changes where they unknowingly brought down the web server (ie. firewall change, actually unplugging a web server thinking it was an outdated box, etc). I was able to notify them of the server outage and letting them know that I couldn't VPN into the box which led their IS people responding with an "oops, that was us". If you'd prefer something that is in your control (rather than using a 3rd-party service), then I'd suggest something like Servers Alive (from Woodstone. NOTE: Windows only). I used to use that software for years (back in the 90s and early 2000s). It offers tons more features. i.e., it can detect if a Windows service on the box is not responding and restart it. If the internet is completely down at a location it can use a local modem to text a message to you (and tons more features). Back then (at the place I was working) we had vital servers we were hosting and the modem option was a must. Plus it allows you to monitor up to 10 things for free (before buying the actual product)... meaning you can have it monitor your SQL server, webserver, website, and several more items for free (forever). At least, that's what it used to offer (I'm assuming it still does). -- Jeff Coughlin Web Application Developer http://jeffcoughlin.com On Dec 1, 2009, at 5:52 AM, James Buckingham wrote: > Hiya, > > I'm building a Link Checker scheduled task for our new site. The idea > being that each night it will ping the addresses in the dmLink type > and make sure they're returning a valid page still. > > What we're planning on doing is having a counter field. So rather than > flagging up the moment a page doesn't responsed we want the system to > let us know when it's not responded X amount of times (in case a > server is temp. down etc.) > > In terms of "best practice" what would people do here: > > 1) Add an extra field into the dmLink table - In one sense I see this > as bad as it means I'm adding my own custom code to something FarCry > is managing just now, unless there is a way in the dmLink.cfc I can > add a custom field without it appearing in the webtop? > > On the plus side I've got all the records sitting there ready to go > if / when I need them so my code would be a lot cleaner. > > 2) Add a new custom table which contains the link objectID and the > counter. Pro is I have the task separate from the core, Con is I'd > need to do a bit more CRUD work of the record in my task to make sure > everything was in > sync with the main dmLink table. Is that something fourQ could maybe > do for me though? > > Personally I'm think option 2 might be the best approach. > > BTW - Is this something that anyone else has built as a plugin / > scheduled task already? > > As always, any feedback would be appreciated. > > Cheers, > James -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
