List server info not working
Posted: Thu Mar 31, 2016 3:14 pm
I am having troubles with this file.
https://github.com/serghey-rodin/vesta/ ... /index.php
This part isnt working/not giving output.
When running v-list-sys-cpu-status in terminal I am getting an output. a print of TOP and the CPUs.
when running v-list-sys-memory-status I get a "free -m" output and a summary after that.
The scripts seem to work but not outputting anything to that page.
Anyone have an idea how to debug this or fix this?
https://github.com/serghey-rodin/vesta/ ... /index.php
This part isnt working/not giving output.
Code: Select all
// CPU info
if (isset($_GET['cpu'])) {
$TAB = 'CPU';
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
exec (VESTA_CMD.'v-list-sys-cpu-status', $output, $return_var);
foreach($output as $file) {
echo $file . "\n";
}
echo " </pre>\n</body>\n</html>\n";
exit();
}
// Memory info
if (isset($_GET['mem'])) {
$TAB = 'MEMORY';
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
exec (VESTA_CMD.'v-list-sys-memory-status', $output, $return_var);
foreach($output as $file) {
echo $file . "\n";
}
echo " </pre>\n</body>\n</html>\n";
exit();
}
when running v-list-sys-memory-status I get a "free -m" output and a summary after that.
The scripts seem to work but not outputting anything to that page.
Anyone have an idea how to debug this or fix this?