The Ultimate Business Machine - Archives List of Categories : Database * Technology * Commentary * Singapore * Travel *
Sun 20 Mar 2005
WebServer Monitor
Category : Technology/WebServerMonitor.txt
I've been using this for about two years. I built this, in AppleScript Studio, even before I built Sendmail Enabler, and way before Postfix Enabler. I've been using it to monitor my web server log (i.e., the Apache log file) remotely from wherever I happen to be. It's been quite useful, knowing which pages people find useful on my site, as well as all the places that happen to refer to something that I've written. But I've never released it because it was slow (if you're trying to load in more than 3000 lines of server log records using AppleScript Studio). And, also, because I think it'll bring me even more queries than I have time to answer, e.g., in order to use this, you'll have to know how to set up an auto SSH (Remote Login) connection on the command line first. Even though you only have to do it just once, it's really too difficult to explain. But, now, I think I've solved it. Both questions. Firstly, I've re-written it in Objective-C and it's fast enough to load in, say, 10000 lines of log records reasonably quickly. Then I've also, finally, found the time to write a utility that will help a user set up the SSH (which means Secure Shell) connection from whatever machine (an iBook, say) he wants to use to monitor his server from - with just one click and without knowing any Unix. All he needs to provide is his password for the administrator account on his server machine. He does this in the Preferences Window in WebServer Monitor, which appears automatically when the program launches, if an SSH connection to a server machine is not yet set up : As shown, in the picture above, you can set up a Remote Login connection to your server machine from your roving iBook, with just one click. Once you're done, you can do one more thing from your iBook - set up the server's Apache log file so that it'll report referrer information (i.e., the pages that refer to pages on your web site). The Apache log file is not set up that way, by default, but you can change it. With the WebServer Monitor set up to show the referrers' URLs, you're just one click away from knowing how your pages have been referred to from elsewhere : This is one of the fun things about looking up your referrers. You never know what might turn up. For example, that referrer URL above will lead me to : Have fun, using WebServer Monitor. You can download it from here, right now.
Posted at 3:37PM UTC | permalink
|