Linux CPU Temperature Monitoring

Source: Internet
Author: User
Article Title: Linux CPU Temperature Monitoring. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Install the test system:

Hardware: ordinary PC,

Software: redhat linux as 4 2.6. 9, install the built-in lm_sensors-2.8.7-2.i386

You can also download it from [url] http://www.edgedesign.us/about/lm_sensors#/url #

This software can collect the system temperature in linux. Then I use cacti to display.

Because it comes with the system. So I have installed the system. So if you cannot find it. You can find it on the system disk and then install it with rpm. I will not talk about this.

See the configuration below:

Run:/sbin/depmod? A

Vi/etc/ld. so. conf

Add this line:/usr/local/lib

Run: ldconfig

Run: sensors-detect to scan the chipset used by your host

1: We can start with probing for (PCI) I2C or SMBus adapters.

You do not need any special privileges for this.

Do you want to probe now? (YES/no): YES

2: Next adapter: SMBus I801 adapter at 0500 (Algorithm unavailable)

Do you want to scan it? (YES/no/selectively): YES

3: Do you want to scan the ISA bus? (YES/no): YES

4: Do you want to scan for Super I/O sensors? (YES/no): YES

5: Do you want to scan for secondary Super I/O sensors? (YES/no): YES

6: Now follows a summary of the probes I have just done.

Just press ENTER to continue: ENTER

7: I will now generate the commands needed to load the I2C modules.

Sometimes, a chip is available both through the ISA bus and an I2C bus.

ISA bus access is faster, but you need to load an additional driver module

For it. If you have the choice, do you want to use the ISA bus or

I2C/SMBus (ISA/smbus )? ISA

Display:

To make the sensors modules behave correctly, add these lines

/Etc/modules. conf:

# ---- Cut here ----

# I2C module options

I2c-dev alias char-major-89

# ---- Cut here ----

To load everything that is needed, add this to some/etc/rc * file:

# ---- Cut here ----

# I2C adapter drivers

Modprobe i2c-isa

# I2C chip drivers

Modprobe w83627hf

# Sleep 2 # optional

/Usr/bin/sensors-s # recommended

# ---- Cut here ----

WARNING! If you have some things built into your kernel, the list above

Will contain too modules. Skip the appropriate ones! You really shocould

Try these commands right now to make sure everything is working properly.

Monitoring programs won't work until it's done.

8: Do you want to generate/etc/sysconfig/lm_sensors? (YES/no): YES

Copy prog/init/lm_sensors.init to/etc/rc. d/init. d/lm_sensors

For initialization at boot time.

Complete.

Cat/etc/sysconfig/lm_sensors

Display:

MODULE_0 = i2c-isa

MODULE_1 = w83627hf

Start

[Root @ linux etc] #/etc/rc. d/init. d/lm_sensors start

Starting lm_sensors: [OK]

[1] [2] Next page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.