Такс всем спасибо вопрос решен, возник другой:
Установлен пакет sensors, откликается вроде корректно:
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +42.0б╟C (high = +80.0б╟C, crit = +100.0б╟C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +42.0б╟C (high = +80.0б╟C, crit = +100.0б╟C)
it8718-isa-0290
Adapter: ISA adapter
in0: +1.12 V (min = +0.00 V, max = +4.08 V)
in1: +1.92 V (min = +0.00 V, max = +4.08 V)
in2: +3.28 V (min = +0.00 V, max = +4.08 V)
in3: +2.96 V (min = +0.00 V, max = +4.08 V)
in4: +3.02 V (min = +0.00 V, max = +4.08 V)
in5: +0.00 V (min = +0.00 V, max = +4.08 V) ALARM
in6: +1.18 V (min = +0.00 V, max = +4.08 V)
in7: +4.08 V (min = +0.00 V, max = +4.08 V) ALARM
Vbat: +3.07 V
fan1: 1622 RPM (min = 0 RPM)
fan2: 712 RPM (min = 0 RPM)
fan3: 1083 RPM (min = 0 RPM)
fan4: 1123 RPM (min = 0 RPM)
temp1: +35.0б╟C (low = +127.0б╟C, high = +127.0б╟C) sensor = thermistor
temp2: -2.0б╟C (low = +127.0б╟C, high = +127.0б╟C) sensor = thermistor
temp3: +31.0б╟C (low = -1.0б╟C, high = +85.0б╟C) sensor = thermal diode
cpu0_vid: +2.050 V
При добавлении конфигурации в mrtg
Title[localhost.temp]: Temperature on box
PageTop[localhost.temp]: <H1>Temperature</H1>
Target[localhost.temp]: `/usr/bin/sensors | /usr/bin/awk '/^M\/B Temp:/{ sub(/\+/,"",$3); print $3 }/^CPU Temp:/{ sub(/\+/,"",$3); print $3 }'`
Options[localhost.temp]: noinfo,gauge,growright,integer,nopercent,pngdate,unknaszero
Unscaled[localhost.temp]:dwmy
MaxBytes[localhost.temp]: 80
Kilo[localhost.temp]:1000
YLegend[localhost.temp]: Temperature
ShortLegend[localhost.temp]: C
Legend1[localhost.temp]: M/B Temp
Legend2[localhost.temp]: CPU Temp
LegendI[localhost.temp]: M/B Temp
LegendO[localhost.temp]: CPU Temp
Legend3[localhost.temp]: M/B
Legend4[localhost.temp]: CPU
Выдает ошибку:
2010-01-13 20:24:12: WARNING: Could not get any data from external command '/usr/bin/sensors | /usr/bin/awk '/^M \/B Temp:/{ sub(/\+/,"",$3); print $3 }/^CPU Temp:/{ sub(/\+/,"",$3); print $3 }''
Maybe the external command did not even start. (Illegal seek)
2010-01-13 20:24:12: WARNING: Problem with External get '/usr/bin/sensors | /usr/bin/awk '/^M\/B Temp:/{ sub(/\+ /,"",$3); print $3 }/^CPU Temp:/{ sub(/\+/,"",$3); print $3 }'':
Expected a Number for 'in' but nothing'
2010-01-13 20:24:12: WARNING: Problem with External get '/usr/bin/sensors | /usr/bin/awk '/^M\/B Temp:/{ sub(/\+ /,"",$3); print $3 }/^CPU Temp:/{ sub(/\+/,"",$3); print $3 }'':
Expected a Number for 'out' but nothing'
2010-01-13 20:24:12: ERROR: Target[localhost.temp][_IN_] ' $target->[6]{$mode} ' did not eval into defined data
2010-01-13 20:24:12: ERROR: Target[localhost.temp][_OUT_] ' $target->[6]{$mode} ' did not eval into defined data
что не так?
Да и вопрос намбер 2:
Добавляем следующий конфиг:
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@localhost+ ssCpuRawSystem.0&ssCpuRawSystem.0:public@localhost+ ssCpuRawNice.0&ssCpuRawNice.0:public@localhost
RouterUptime[localhost.cpu]: public@localhost
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: CPU Load
PageTop[localhost.cpu]: <H1>Active CPU Load %</H1>
Unscaled[localhost.cpu]: ymwd
ShortLegend[localhost.cpu]: %
YLegend[localhost.cpu]: CPU Utilization
Legend1[localhost.cpu]: Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,nopercent,unknaszero,pngdate
Менять какие-нибудь настройки не надо? т.к. ядра 2 - цп фактически не нагружен а показания высокие (