Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Beste,

Ik heb op mijn server phpsysinfo geïnstalleerd, en het werk gewoon. Maar nu wil ik de temperaturen van mijn core en harde schijven weergeven. Dus in die config.php heb ik de sensor LMSensors ingesteld bij hdd en Core temperatuur. Natuurlijk heb ik deze ook geïnstalleerd via de commandline.

Maar het probleem is, zodra ik nu in phpsysinfo kijk is dat de temperaturen niet worden weergegeven met deze error:

"
OH, I'M SORRY. SOMETHING SEEMS TO BE WRONG.
__construct()

Wrong Value in config.php for PSI_SENSOR_ACCESS
errorHandlerPsi :

PHP throws a error
Level : 2 Message : fsockopen() [function.fsockopen]: unable to connect to localhost:7634 (Connection refused) File : /home/www/********/phpsysinfo/includes/mb/class.HDDTemp.inc.php Line : 42
HDDTemp error

111, Connection refused

./xml.php on line 45
./includes/output/class.WebpageXML.inc.php on line 138 in function run()
./includes/xml/class.XML.inc.php on line 449 in function getXml()
./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
./includes/xml/class.XML.inc.php on line 339 in function _buildMbinfo()
./includes/mb/class.Sensors.inc.php on line 60 in function getMBInfo()
./includes/mb/class.HDDTemp.inc.php on line 133 in function build()
./includes/mb/class.HDDTemp.inc.php on line 50 in function _temperature()
"

Dit is mijn configuratie file van de sensors.

# BEGIN
// ********************************
// SENSORS PARAMETERS
// ********************************

/**
* Define the motherboard monitoring program (!!!names are case-sensitive!!!)
* We support the following programs so far
* - LMSensors http://www.lm-sensors.org/
* - Healthd http://healthd.thehousleys.net/
* - HWSensors http://www.openbsd.org/
* - MBMon http://www.nt.phys.kyushu...zu/download/download.html
* - MBM5 http://mbm.livewiredev.com/
* - Coretemp
* - IPMI http://openipmi.sourceforge.net/
* - K8Temp http://hur.st/k8temp/
* Example: If you want to use lmsensors : define('PSI_SENSOR_PROGRAM', 'LMSensors');
*/
define('PSI_SENSOR_PROGRAM', 'LMSensors');

/**
* Define how to access the monitor program
* Available methods for the above list are in the following list
* default method 'command' should be fine for everybody
* !!! tcp connections are only made local and on the default port !!!
* - LMSensors command, file
* - Healthd command
* - HWSensors command
* - MBMon command, tcp
* - MBM5 file
* - Coretemp command
* - IPMI command
* - K8Temp command
*/
define('PSI_SENSOR_ACCESS', '');

/**
* Hddtemp program
* If the hddtemp program is available we can read the temperature, if hdd is smart capable
* !!ATTENTION!! hddtemp might be a security issue
* - define('PSI_HDD_TEMP', 'tcp'); // read data from hddtemp deamon (localhost:7634)
* - define('PSI_HDD_TEMP', 'command'); // read data from hddtemp programm (must be set suid)
*/
define('PSI_HDD_TEMP','tcp');
#EINDE

Ik heb al op google gekeken, maar alle oplossing die daar staan helpen niet.

Heeft iemand enig idee hoe ik dit werkend kan krijgen op mijn server ?

Het gaat trouwens om een HP Proliant DL100 G2.

Bvd,
Dync:)

Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

Je hddtemp daemon draait niet of luistert niet op localhost:7634. Als je hddtemp wel geinstalleerd hebt maar niet als daemon wilt draaien kun je ook die define aanpassen zoals onderin.

[ Voor 47% gewijzigd door CyBeR op 21-03-2010 12:46 ]

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
De daemon draait als het goed is wel, maar hoe kan ik controleren of hij luistert naar 7634 ?

Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

netstat -tupan

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Oke bedankt, en nee hij staat er inderdaad niet tussen. Hoe kan ik zorgen dat die ertussen komt te staan dan. Ben nog niet helemaal thuis in linux.. :P

Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

Je kunt dus ook de define aanpassen, dan hoeft dat niet ;)

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
oke, misschien domme vraag. Maar welke define moet ik aanpassen en wat moet erin aangezien geen een van de temperaturen monitors werkt.

Edit:

ik zie nu dat de errors bijna allemaal weg zijn, behalve deze;

OH, I'M SORRY. SOMETHING SEEMS TO BE WRONG.
__construct()

Wrong Value in config.php for PSI_SENSOR_ACCESS

Maar toch geeft die helemaal niks weer.

Edit2:

Heb nu aangepast in de config, maar nu zegt die dit:

#
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
Return value: 0

./xml.php on line 45
./includes/output/class.WebpageXML.inc.php on line 138 in function run()
./includes/xml/class.XML.inc.php on line 449 in function getXml()
./includes/xml/class.XML.inc.php on line 435 in function _buildXml()
./includes/xml/class.XML.inc.php on line 328 in function _buildMbinfo()
./includes/mb/class.LMSensors.inc.php on line 43 in function __construct()
./includes/class.CommonFunctions.inc.php on line 129 in function executeProgram( "sensors", "", "" )
#

[ Voor 94% gewijzigd door Verwijderd op 21-03-2010 13:19 ]


Acties:
  • 0 Henk 'm!

  • CyBeR
  • Registratie: September 2001
  • Niet online

CyBeR

💩

Dan heb je blijkbaar geen werkende sensors. Uitzetten dus, of zorgen dat je sensors in de kernel werken. Daar kan ik je niet mee helpen ben ik bang.

All my posts are provided as-is. They come with NO WARRANTY at all.


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Hmm oke, dus eigenlijk kan het gewoon niet of moet ik iets updaten ofzo?
Pagina: 1