Есть сервер. На нём RHEL4. Нужно сделать так, чтоб когда температура проца поднималась до определённого уровня рассылались СМС с предупреждениями об этом, а если исчё выше - то вырубал другие серваки и затем ложился сам.
sensors-detect запусти и внимательно читай, что он тебе в конце напишет - там будут необходимые модули для мониторинга температуры, загружай или (колы нэма) - ядро пересобирай
sesnors-detect мне выдал:
This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.
It is generally safe and recommended to accept the default answers to all
questions, unless you know what you're doing.
Bad VPD checksum (0x8A)! Please report.
System vendor: IBM
BIOS version: APE132AUS
Sorry, we won't let you go on. IBM systems are known to have
serious problems with lm_sensors, resulting in hardware failures.
For more information, see README.thinkpad or
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/README.thinkpad.
We will be progressively updating our user-space tools so as to prevent
the problem from occuring. Some kernel drivers will need updates too.
This lock will be removed once everything is fixed and believed to be
safe.
-----------
кто-то говорил мне, что lmsensors мне не поможет. Судя по-всему это правда. Или нет?
угу... следующий вариант - ищи спеки на мамку и смотри какой модуль в ответе за температурные датчики на ней. w83627hf - подходит для многих, но тут надо поаккуратнее...
$ find /sys | grep thermal
/sys/module/thermal
/sys/module/thermal/sections
/sys/module/thermal/sections/.strtab
/sys/module/thermal/sections/.symtab
/sys/module/thermal/sections/.bss
/sys/module/thermal/sections/.gnu.linkonce.this_module
/sys/module/thermal/sections/.data
/sys/module/thermal/sections/__param
/sys/module/thermal/sections/.rodata.str1.1
/sys/module/thermal/sections/.rodata
/sys/module/thermal/sections/.init.text
/sys/module/thermal/sections/.exit.text
/sys/module/thermal/sections/.text
/sys/module/thermal/refcnt
/sys/module/thermal/initstate
/sys/module/thermal/holders
/sys/module/processor/holders/thermal
/sys/bus/acpi/drivers/thermal
/sys/bus/acpi/drivers/thermal/bind
/sys/bus/acpi/drivers/thermal/unbind
/sys/bus/acpi/devices/thermal:00
/sys/devices/acpi_system:00/thermal:00
/sys/devices/acpi_system:00/thermal:00/hid
/sys/devices/acpi_system:00/thermal:00/path
/sys/devices/acpi_system:00/thermal:00/subsystem
/sys/devices/acpi_system:00/thermal:00/power
/sys/devices/acpi_system:00/thermal:00/power/wakeup
/sys/devices/acpi_system:00/thermal:00/uevent
и если понять, что тут есть эта температура - будет проще
/sys/module/thermal/sections/.data
или
/sys/module/thermal/sections/.rodata
я правда уже настолько обленился, что полностью доверяю gkrellm-у (туда напихал на Alarm правил и сплю спокойно)