Is there a way to read the cpu temp from centos?
I have odd things happening on my computer. I have had a couple kernel crashes.. today I was trying to untar a file and got a "Bus error" printed on screen. after a reboot the file untared just fine.
very odd behavior.
Without rebooting again I was wanting to check the health...
I have an Intel motherboard, 2.4 P4, 2 GIG, 2 brand new seagate 300G drives.
Thanks,
Jerry
Jerry Geis wrote:
Is there a way to read the cpu temp from centos?
Do you ACPI enabled and on or are you running APM? If you have ACPI on, you can see your CPU temperature from /proc/acpi/thermal_zone/THMO/temperature. There are other useful values in the /proc/acpi/thermal_zone/THMO directory other than just temperature.
Max
On Thu, 2005-12-01 at 23:37 -0500, Max wrote:
Do you ACPI enabled and on or are you running APM? If you have ACPI on, you can see your CPU temperature from /proc/acpi/thermal_zone/THMO/temperature.
I have: [root@needme ~]# cat /boot/config-`uname -r`|grep THERMAL CONFIG_ACPI_THERMAL=y
but [root@needme ~]# ls -l /proc/acpi/thermal_zone/ total 0
directory is empty.
acpid is running. Any ideas what's wrong?
Rob Watkin
Hello,
I have MySQL configures as a service, but it doesn't start. It takes a long time saying "starting mysql..........." but then nothing.
In order to start it, I have to login as user mysql, and then start with mysqld.
What should I do to configure the service properly?
Thank you Samuel
--- andinasoft SA - Software y Consulting --- Mariano Aguilera 216 y Almagro - Quito, Ecuador Tel. +593 2 223 5682 ----- Cel. +593 9 946 4046 --------- http://www.andinasoft.com ---------
On 12/2/05, Samuel Rochas samuel.rochas@andinasoft.com wrote:
Hello,
I have MySQL configures as a service, but it doesn't start. It takes a long time saying "starting mysql..........." but then nothing.
In order to start it, I have to login as user mysql, and then start with mysqld.
What should I do to configure the service properly?
Thank you Samuel
By default mysql starts just fine, so the question becomes "What did you do?". What changes did you make, what do you mean when you say you configured it as a service, etc. How did you install mysql-server etc? We need details to be able to offer solid guidance.
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
Hello Jim,
By default mysql starts just fine, so the question becomes "What did you do?".
That's a good question. As far as I remember, installed mysql with centos. Then, since I could not enter to mysql console, I started to search for a solution, including reinstall mysql server and client from "some" rpms. Maybe the best solution is to uninstall the client and the server and to install the mysql stuff again from CD?
Thank you Samuel
--- andinasoft SA - Software y Consulting --- Mariano Aguilera 216 y Almagro - Quito, Ecuador Tel. +593 2 223 5682 ----- Cel. +593 9 946 4046 --------- http://www.andinasoft.com ---------
centos-bounces@centos.org <> scribbled on Friday, December 02, 2005 9:33 AM:
Hello Jim,
By default mysql starts just fine, so the question becomes
"What did
you do?".
That's a good question. As far as I remember, installed mysql with centos. Then, since I could not enter to mysql console, I started to search for a solution, including reinstall mysql server and client from "some" rpms. Maybe the best solution is to uninstall the client and the server and to install the mysql stuff again from CD?
Thank you Samuel
rpm -e mysql-server yum install mysql-server
should accomplish what you want.
Mike
rpm -e mysql-server yum install mysql-server
should accomplish what you want.
Only think I'd add to this is that removing the rpm doesn't remove any of the existing db files in /var/lib/mysql/ so if something is hosed in them, it will remain hosed on new install. If you haven't put anything in the db yet, I'd nuke the files in /var/lib/mysql/ before the yum install mysql-server command.
-- Jim Perrin System Architect - UIT Ft Gordon & US Army Signal Center
On Fri, 2005-12-02 at 10:51 -0500, Jim Perrin wrote:
rpm -e mysql-server yum install mysql-server
should accomplish what you want.
Only think I'd add to this is that removing the rpm doesn't remove any of the existing db files in /var/lib/mysql/ so if something is hosed in them, it will remain hosed on new install. If you haven't put anything in the db yet, I'd nuke the files in /var/lib/mysql/ before the yum install mysql-server command.
---- cli - as root...
# service mysqld stop # rm -fr /var/lib/mysql/* # completely purges all databases (beware) # service mysqld start # sets up default databases again # mysqladmin - u root password 'new-password' # sets root password # for mysql ### note by default, root user doesn't have a password
# chkconfig mysqld on # start mysql server daemon to automatically # start up on common run levels
Craig
Hello,
Thank you for the help.
Reinstalling from yum did not help, removing the tables did the job :-)
Thanks again Sincerely Samuel
--- andinasoft SA - Software y Consulting --- Mariano Aguilera 216 y Almagro - Quito, Ecuador Tel. +593 2 223 5682 ----- Cel. +593 9 946 4046 --------- http://www.andinasoft.com ---------
Rob wrote:
I have: [root@needme ~]# cat /boot/config-`uname -r`|grep THERMAL CONFIG_ACPI_THERMAL=y
but [root@needme ~]# ls -l /proc/acpi/thermal_zone/ total 0
directory is empty.
acpid is running. Any ideas what's wrong?
I thought if acpid was running, the default was that directory. I'm running that on a Thinkpad though, so perhaps I have some IBM stuff loaded extra, I know I didn't load anything extra myself. I just checked on my desktop install and that directory is empty too, my mistake I apologize.
I have a line in my grub.conf file to have it on as well:
kernel /vmlinuz-2.6.9-22.0.1.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet apm=off acpi=on
I'm not sure if that offers any help or not, but you said you had the daemon running so that line shouldn't matter I wouldn't think.
Max
Max wrote on Thu, 01 Dec 2005 23:37:25 -0500:
/proc/acpi/thermal_zone/THMO/temperature
From looking around in that tree it's THRM, not THMO. Thanks for the info,
anyway!
Kai