OK all the things you're looking for are under the directory
/proc ( that stand for processes )
and under
/var/log ( or something similar )
you have to locate them one by one but it isn't too difficult ( especially CPU and memory )
to create a shell script you could use a console text editing like
vi ( I use this ) and I think that using a few commands like:
ls
grep
> (to redirect output in a file)
other commands . . .
you should resolve your problem. The file must be executable only by root so you have to change its permission with the command:
chmod 700 <filename>
then put it under your
/sbin directory to place it between your shell command.
I think that with this system you shouldn't have problems. However I remember you two things:
1. I use SuSE so some things could be different (i.e. directories )
2. I'm not a programmer so I suggest you to look for a tutorial on how to write scripts in bash.
See you.