Koozali.org: home of the SME Server

PhpSysInfo

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
PhpSysInfo
« 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

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]

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
PhpSysInfo
« Reply #1 on: June 22, 2006, 11:19:57 AM »
I have installed phpsysinfo via rpm.

You can find it here.

http://mirror.contribs.org/smeserver//contribs/dmay/smeserver/7.x/

Tony
...

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
PhpSysInfo
« Reply #2 on: June 22, 2006, 11:24:56 AM »
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?

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
PhpSysInfo
« Reply #3 on: June 22, 2006, 01:05:37 PM »
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
...

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
PhpSysInfo
« Reply #4 on: June 22, 2006, 01:32:16 PM »
Thanks are you sing lmsensors on your sysinfo?

Offline ajkeane

  • *****
  • 187
  • +0/-0
    • http://keane.co.nz
PhpSysInfo
« Reply #5 on: June 22, 2006, 09:23:34 PM »
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
...

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
PhpSysInfo
« Reply #6 on: June 23, 2006, 12:08:55 AM »
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

Offline jameswilson

  • *
  • 792
  • +0/-0
    • Security Warehouse, trade security equipment
PhpSysInfo
« Reply #7 on: June 25, 2006, 02:47:19 AM »
Hi again
After a little more digging i think i may have found a possible answer
I did a
Code: [Select]
yum search sensors
and got
Quote
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
Quote
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

Janm

PhpSysInfo
« Reply #8 on: July 05, 2006, 04:26:37 AM »
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:

Offline marsa_matruh

  • *****
  • 250
  • +0/-0
Re: PhpSysInfo
« Reply #9 on: January 22, 2007, 06:28:26 PM »
Quote from: "jameswilson"
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 of phpsysinfo. At the bottom of the page, you can find a patch. I applied it manually for phpsysinfo 2.5.2 installed on SME 7.1. It is ok. I do not have error message anymore.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
PhpSysInfo
« Reply #10 on: January 22, 2007, 06:47:56 PM »
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
Code: [Select]
// $sensor_program = "lmsensors";
// $sensor_program = "healthd";
// $sensor_program = "hwsensors";
// $sensor_program = "mbmon";
// $sensor_program = "mbm5";
$sensor_program = "";


Did you modify this?
"It should just work" if it doesn't report it. Thanks!

Offline marsa_matruh

  • *****
  • 250
  • +0/-0
PhpSysInfo
« Reply #11 on: January 22, 2007, 07:08:13 PM »
Quote from: "bpivk"

Did you modify this?


No.

Offline cool34000

  • *
  • 339
  • +0/-0
PhpSysInfo
« Reply #12 on: January 25, 2007, 12:17:49 PM »
You can disable showing errors by modifying the config.php :
Replace
Code: [Select]
$showerrors = true;by
Code: [Select]
$showerrors = false;

I also suggest you to install the rpm, it's working perfectly...

Offline beakersloco

  • ****
  • 142
  • +0/-0
PhpSysInfo
« Reply #13 on: March 20, 2007, 03:45:14 AM »
bump so I can find this later
All that's necessary for the forces of evil to win in the world is for enough good men to do nothing.???" Edmund Burke -Irish orator, philosopher, & politician


For the battle is not yours, but God's.   2 Chronicles 20:15

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
PhpSysInfo
« Reply #14 on: March 20, 2007, 03:52:08 AM »
Just make a bookmark with all the important links in it  :D

That way you don’t resurrect all the old posts