In you rtemplate directory there will be serverstatus.tpl file. Just edit it. I'm not sure about the exact name of the file but it's something like that.
You have to use WHMCS API. According to my knowledge you can't call / use stuff from one template file to other because they all run on different php files.