Broker Monitoring

I am using optimize for infrastructure (which sucks as an application) to monitor broker queue and alert us if the broker has 200 documents queued for more than an hour.

I am thinking of getting rid of optimize for infrastructure it being such a flaky application (What do others think?). Most monitoring I am able to script up or use other applications for. However, for Broker queue monitoring I was wondering if I could write some custom java scripts using BrokerAPIs. Has anybody else done it, if so can you share your ideas?
Thanks a bunch!!
NM

Various administrative information is available through the Broker administrative API. Refer to the API documentation. Getting queue depth is a common task which several folks have done. There may be an example here or on Advantage.