how about google? It has hundreds of ready made scripts available for Linux. You just need to tailer them little bit to fit into your environment.

Regards,