Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: jameswilson on June 22, 2006, 12:27:21 AM
-
Hi there all, 1st post and all
Thankyou so much for SME i found it the other day and have replaced my home roter/web server with it and am very impressed.
I have added awstats with great success but im struggling with sysinfo and lmsensors
I have the relevant pakages i think. Im getting my head around these ibays
I have create an ibay (phpsysinfo) and modified the script posted in contribs to install PhpSysInfo in the phpsysinfo ibay.
Modified the config.php and enabled lmsensors but
http://217.154.38.122/phpsysinfo/
I have 3 errors as you should see above
Quote:
File Line Command Message
common_functions.php 157 find_program(sensors) program not found on the machine
common_functions.php 157 find_program(who) program not found on the machine
common_functions.php 337 file_exists(/proc/scsi/scsi) the file does not exist on your machine
And am clean out of ideas. Anyone have any pointers please?
Once again thankyou[/url]
-
I have installed phpsysinfo via rpm.
You can find it here.
http://mirror.contribs.org/smeserver//contribs/dmay/smeserver/7.x/
Tony
-
Thanks Tony but i have sysinfo running but i have the above errors at the top of the page, Should i remove all traces of sysinfo and reinstall form the rpm given?
-
I definately can't help you with the errors.
I know the rpm works.
You could always try installing the rpm and see if that sorts the errors.
If not remove sysinfo from the ibay and then you access sysinfo with https://yourdomain.com/phpsysinfo
Test it and see what happens.
Tony
-
Thanks are you sing lmsensors on your sysinfo?
-
No I don't.
I have had a look through the forums and come up with these two links they may assist.
http://forums.contribs.org/index.php?topic=30730.0
http://forums.contribs.org/index.php?topic=30876.0
Tony
-
Thanks I had used one of them in the original setup, but i checked through them again and still no luck. The same error remains.
If i type sensors at bash i get a list of tems etc but neith phpsysinfo or SME7admin can see any temps. Im sure its something minor but not sure what!?
Thanks
-
Hi again
After a little more digging i think i may have found a possible answer
I did a yum search sensors
and got
Reading repository metadata in from local files
lm_sensors.i386 2.8.7-2.40.3 smeos
Matched from:
lm_sensors
The lm_sensors package includes a collection of modules for general SMBus
access and hardware monitoring. NOTE: this requires special support which
is not in standard 2.2-vintage kernels.
smeserver-sme7admin.noarch 1.1.0-1 installed
Matched from:
Un demon qui recolte des informations en parsant les logs du systeme, en executant
des commandes de status type sysstat, qui alimente des rrd et une base de donnees mysql,
et qui declenche des alertes par e-mail en fonction de criteres configurables.
Associé a un panel du server-manager qui permet de consulter les informations stockees,
d'afficher les graphes generes par les rrdtool, et de configurer les alertes.
Il faut installer lm_sensors, hddtemp, ulogd, clamav et spamassassin si on veut
l'utiliser au maximum. Tout ces logiciels sont inclus dans SME 7.0.
Ce programme s'inspire en toute petite partie de e-smith-sysmon par Shad Lords.
Il permet d'avoir un maximum d'information sur l'utilisation du serveur en un coup d'oeil.
lm_sensors.i386 2.9.1-3.FC4.2 installed
Matched from:
lm_sensors
The lm_sensors package includes a collection of modules for general SMBus
access and hardware monitoring. NOTE: this requires special support which
is not in standard 2.2-vintage kernels.
As you can see i have 2 sets of lm_sensors installed.
I have tried removing lm_sensors and it reports that sme7admin requires them.
I hoped removing the newer version would fix my issues but alas then
running sensors
returns a command not found.
I dont know how to remove the sme version of lm_sensors or wether i want too?
Anyhow with the 2 versions that are currently installed when i run
sensors
From the command line i get my temps and fan speeds etc but neither phpsysinfo or sme7admin report any temp infomation evnen to the point that phpsysinfo reports that the sensors file doesnt exist on my machine even though sensors from the command line gives me temps!
Any ideas gurus??
PHPSYSINFO at
http://jpwilson.eu/phpsysinfo
Many Thanks James
-
Hej :
I tried to reproduce you problem
if you have phpsysinfo in a ibay
delete the whole thing but not the ibay html
then install dmays
http://mirror.contribs.org/smeserver//contribs/dmay/smeserver/7.x/smeserver-phpsysinfo-2.5-0dmay.noarch.rpm
rpm -Uvh *.rpm
and after that go in
/opt and copy the whole /html/phpsysinfo/xxxxx
to your ibay where the other was before and
signal-event post-upgrade
signal-event reboot
hope thats help
Jan dk :hammer:
-
common_functions.php 337 file_exists(/proc/scsi/scsi) the file does not exist on your machine
For this error, it is a known issue (http://sourceforge.net/tracker/index.php?func=detail&aid=1623408&group_id=15&atid=100015) of phpsysinfo. At the bottom of the page, you can find a patch (http://sourceforge.net/tracker/download.php?group_id=15&atid=100015&file_id=208794&aid=1623408). I applied it manually for phpsysinfo 2.5.2 installed on SME 7.1. It is ok. I do not have error message anymore.
-
For problems:
common_functions.php 157 find_program(sensors) program not found on the machine
common_functions.php 157 find_program(who) program not found on the machine
If i remember correctly you can disable this function (sensors) in config.php or in some other file. Don't remember.
Edit:
Config.php contains
// $sensor_program = "lmsensors";
// $sensor_program = "healthd";
// $sensor_program = "hwsensors";
// $sensor_program = "mbmon";
// $sensor_program = "mbm5";
$sensor_program = "";
Did you modify this?
-
Did you modify this?
No.
-
You can disable showing errors by modifying the config.php :
Replace $showerrors = true;
by $showerrors = false;
I also suggest you to install the rpm, it's working perfectly...
-
bump so I can find this later
-
Just make a bookmark with all the important links in it :D
That way you don’t resurrect all the old posts