The
Ultimate
Business Machine

Technology, business
and innovation.

And, not least, about
the Mac.

Weblog Archive Cutedge

by: Bernard Teo






Latest Joy of Tech!

Joy of Tech ... from Geek Culture



Creative Commons License

Copyright © 2003-2012
Bernard Teo
Some Rights Reserved.

The Ultimate Business Machine - Archives

List of Categories : Commentary * Database * Singapore * Technology * Travel *

Sun 03 Apr 2005

WebServer Monitor 1.0.6

Category : Technology

I love the way the Mac OS X Cocoa API's work. It has, what I call, expressive power. You could think of an idea and find the constructs in Cocoa to express them and make them come alive, and it doesn't fight you or make you go through hoops. It's great.

I'm now just one step away from being able to do customisable log formats (if I can figure out how the interface should work). And being able to allow the user to set up the webserver, the way Postfix Enabler allows you to set up mail services.

Setting up PHP would be trivial. But setting up WebDav - that will allow you to use the webserver to store and share your iCal calendars, and from there, you'll start to see how all these little elements start to work in concert.

This 1.0.6 release will pave the way because it will give me the framework to turn features on or off the webserver in an orderly way, again much like Postfix Enabler.

This release also brings you, in conformance to the Apache "combined" log format that I'm adopting, the ability to track virtual hosts, traffic in the form of bytes served, status of hits (success or re-direct or page not found), as well as the ability to show or hide columns selectively.

You can download it now and use it while I figure out how to do the interface for customising the log format (among other things).

It'll still only read the log records from /var/log/httpd/access_log, though. Sorry, but if I solve this, I may be encouraged to think further about how to read the log records from anywhere else.

One more thing, WebServer Monitor will show only the records that have come in since you updated it to track the new log format (essentially the "NCSA extended/combined log format" with the addition of the virtual host field - "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %v". For the ones that came before, it will (should) politely ignore them.

What's next - provide a way to filter by virtual hosts, and by page views (rather than page hits), and to show only the downloads. And the customisable log format stuff. And who knows? Stats and graphs - once I've learned how to draw graphs with Cocoa. Or figure out a way to accept plug-ins, so other people can supply the graphs.

Joe Mullins sent over some suggestions, including a mock up of how it all might work. Thanks. Step by step. I'll try to get there.

Posted at 11:33PM SGT | permalink


Mac@Work
Put your Mac to Work

Sivasothi.com? Now how would you do something like that?

Weblogs. Download and start a weblog of your own.

A Mac Business Toolbox
A survey of the possibilities

A Business Scenario
How we could use Macs in businesses

VPN Enabler for Mavericks

MailServe for Mavericks

DNS Enabler for Mavericks

DNS Agent for Mavericks

WebMon for Mavericks

Luca for Mavericks

Liya for Mountain Lion & Mavericks

Postfix Enabler for Tiger and Panther

Sendmail Enabler for Jaguar

Services running on this server, a Mac Mini running Mac OS X 10.9.2 Mavericks:

  • Apache 2 Web Server
  • Postfix Mail Server
  • Dovecot IMAP Server
  • Fetchmail
  • SpamBayes Spam Filter
  • Procmail
  • BIND DNS Server
  • DNS Agent
  • WebDAV Server
  • VPN Server
  • PHP-based weblog
  • MySQL database
  • PostgreSQL database

all set up using MailServe, WebMon, DNS Enabler, DNS Agent, VPN Enabler, Liya and our SQL installers, all on Mavericks.