1) Create a custom script for tacking program usage.
2) Track that custom script form monit tool which show percentage usage in mmonit.
3) Configure monit and mmonit tools.
MMonit provides general system resources historical data in the form of charts and reports.
It would be really nice if its possible to show historical data in charts and reports of programs and scripts too.