7.12 Hardware Checks with LM Sensors

Modern mainboards are equipped with sensors that allow you to check the "health" of the system. In the lm-sensors[82] project it is also possible in Linux to query this data via I2C or SMBus (System Management Bus, a I2C special case).

To enable this, the kernel must have a suitable driver. Kernel 2.4.x normally requires additional modules, which are included in the software.[83] With a little luck, your distribution may include precompiled modules (e.g., SUSE). Kernel 2.6, however, already includes many drivers; here you just compile the entire branch below I2C Hardware Sensors Chip support.

It would take too much space here to detail the installation of the necessary modules. We will therefore only go into ...

Get Nagios, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.