Submitted by sgrayban on Sun, 12/04/2011 - 05:10
I use this quite often and I have a few clients that always ask me to install it for them and I tried to hack together a script to do but my perl coding blows and it never worked.
http://phpsysinfo.sourceforge.net/
Downloads are at http://prdownloads.sourceforge.net/phpsysinfo/phpsysinfo-$ver.tar.gz
Current version 3.0.15
Status:
Active
Comments
Submitted by JamieCameron on Sun, 12/04/2011 - 13:58 Comment #1
I guess this could be supported, but it seems a little redundant as Virtualmin already displays most of that information on the System Information page ..
Submitted by sgrayban on Sun, 12/04/2011 - 14:58 Comment #2
Well you could always create it as a third party script and give it to me if adding it is pointless for you.
Submitted by JamieCameron on Mon, 12/05/2011 - 00:31 Comment #3
Is it able to get all that info without root privileges? Seems like the SMART status (among others) would be hard for non-root users to read ..
Submitted by sgrayban on Mon, 12/05/2011 - 05:47 Comment #4
Smart status can be read by normal users if set to 4755 however there is a work around for anything so that no root access is needed -- just a few cron jobs.
For SMART...
* Smartctl program
* If the smartctl program is available we can read S.M.A.R.T informations
* - 'command' smartctl command is run everytime the block gets refreshed or build
* if error: Smartctl open device: /dev/sda failed: Permission denied
* Not recommended method:
* -execute: chmod 4755 /usr/sbin/smartctl
* - 'data' (a file must be available in the data directory of the
* phpsysinfo installation with the filename "SMART{disk_number}.txt";
* content is the output from "smartctl --all device")
and that is in the file plugins/SMART/SMART.config.php
There are similar work arounds for the others if you read the plugins config file.
The config file does need to be edited as the stock version doesn't enable most of the features.
define('PSI_JS_COMPRESSION', 'None'); <=== this one has to be set None or false or else some of the features won't work. See https://sourceforge.net/projects/phpsysinfo/forums/forum/9/topic/4864215
define('PSI_ADD_PATHS', '/usr/sbin','/sbin');
Those 2 have to be set that way to see all the status'
You can see mine at http://phpsysinfo.borgnet.us/
Submitted by JamieCameron on Mon, 12/05/2011 - 16:48 Comment #5
Those root cron job requirements are not exactly inspiring me to support phpsysinfo ..
Submitted by sgrayban on Mon, 12/05/2011 - 17:38 Comment #6
You don't have too. Those are optionals as the default install doesn't show any info from plugins by default since non are enabled, you have to edit the config file to show that.
Submitted by JamieCameron on Mon, 12/05/2011 - 23:29 Comment #7
I'll take a look into it ..