in reply to Monitoring an application

Have a look at mon.

It is a complete monitoring application written in perl.