Quote:
Originally Posted by transitbus
Works great except I can not access memory information. This is nothing to do with this mod but instead locking of the server form displaying this info to shmucks like me.
|
I wasn't getting the "Memory Usage" display either, because my server is on FreeBSD instead of Linux.
So, in "server_info.php" I changed lines 58 through 63...
FROM (Linux using 'free')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage <span class="normal">exec(free)</span>');
exec('free', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();
TO (FreeBSD using 'vmstat')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage <span class="normal">exec(vmstat)</span>');
exec('vmstat', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();
Works in a pinch to give the same kind of info.