hallo,
das obengenannte plugin zeigt leider die motherboard und cpu temp nicht an.was muß da geändert werden?

Systeminfo Plugin zeigt die CPU Temp nicht an
-
-
hast du lm-sensors installiert? (z.b. hier oder googlen)
wenn ja: wie sieht der output vonaus?
-
Quote
Original von nippes
hast du lm-sensors installiert? (z.b. hier oder googlen)
wenn ja: wie sieht der output vonaus?
Code
Display Moreroot@FRNSEH-PC:~# sensors atk0110-acpi-0 Adapter: ACPI interface Vcore Voltage: +1.08 V (min = +0.85 V, max = +1.60 V) +3.3 Voltage: +3.34 V (min = +2.97 V, max = +3.63 V) +5 Voltage: +5.09 V (min = +4.50 V, max = +5.50 V) +12 Voltage: +12.09 V (min = +10.20 V, max = +13.80 V) CPU FAN Speed: 1147 RPM (min = 600 RPM) CHASSIS FAN Speed: 0 RPM (min = 600 RPM) POWER FAN Speed: 0 RPM (min = 600 RPM) CPU Temperature: +37.0°C (high = +60.0°C, crit = +95.0°C) MB Temperature: +49.0°C (high = +45.0°C, crit = +95.0°C)
-
kuckst du mal hier http://www.vdr-wiki.de/wiki/index.php…n#Konfiguration
vermutlich passt der entspr. "grep" bei dir nicht!? -
und wie sieht der entsprechende eintrag in
7) # temperature of CPU and mainboard
aus ?
so etwa ?
Code7) # temperature of CPU and mainboard CPU=$(sensors | grep -i 'CPU Temperature' | tr -s ' ' | cut -d'[/CODE rufe das o.g. script mal so auf [CODE]sudo /usr/share/vdr-plugin-systeminfo/systeminfo.sh 7
gruss gerd
-
-
du musst dir den code an der entsprechenden stelle im shellscript anschauen ob das hinter grep zu der ausgabe von sensors passt
gruss gerd
-
Quote
Original von gerdh
du musst dir den code an der entsprechenden stelle im shellscript anschauen ob das hinter grep zu der ausgabe von sensors passtgruss gerd
da kenne ich mich überhaupt nicht aus...und ich habe es heute vormittag ausprobiert und verstehe code nicht.
ich setze mal das script hier rein. vielleicht können wir das gemeinsam mal durchgehen...ich wills ja auch verstehen.
Bash
Display More#!/bin/bash # systeminfo.sh: external data collection script # This file belongs to the VDR plugin systeminfo # # See the main source file 'systeminfo.c' for copyright information and # how to reach the author. # # $Id$ # # possible output formats: # (blanks around tabs only for better reading) # 1) Name \t Value displays Name and Value # 2) Name \t Value1 \t Value2 displays Name, Value1 and Value2 # 3) Name \t total used displays an additional progress bar (percentage) after the values # 4) s \t Name \t ... defines a static value, this line is only requested during the first cycle # # special keywords (they are replaced by the plugin with the actual value): # CPU% CPU usage in percent # # test with: for i in $(seq 1 16); do systeminfo.sh $i;echo;done # PATH=/usr/bin:/bin:/sbin case "$1" in 1) # kernel version (static) KERNEL=$(uname -rm) echo -ne "s\tLinux Kernel:\t"$KERNEL ;; 2) # distribution release (static) if test -f /etc/SuSE-release; then DISTRI="openSuSE" RELEASE=$(head -n 1 /etc/SuSE-release) elif test -f /etc/redhat-release; then DISTRI="RedHat" RELEASE=$(head -n 1 /etc/redhat-release) elif test -f /etc/lsb-release; then DISTRI=$(grep DISTRIB_ID /etc/lsb-release|cut -d"=" -f 2) RELEASE=$(grep DISTRIB_RELEASE /etc/lsb-release|cut -d"=" -f 2) CODENAME=$(grep DISTRIB_CODENAME /etc/lsb-release|cut -d"=" -f 2) elif test -f /etc/debian_version; then DISTRI="Debian" RELEASE=$(head -n 1 /etc/debian_version) elif test -f /etc/gentoo-release; then DISTRI="Gentoo" RELEASE=$(head -n 1 /etc/gentoo-release) elif test -x /usr/bin/crux; then DISTRI="Crux" RELEASE=$(crux|cut -d" " -f 3) elif test -f /etc/arch-release; then DISTRI="Arch Linux" RELEASE=$(LANG= pacman -Qi filesystem | sed -n 's|Version.*: ||p') else DISTRI="unknown" RELEASE="unknow" fi if [ ${DISTRI} == "Ubuntu" ]; then echo -ne "s\tDistribution:\t"$DISTRI" "$RELEASE" "\($CODENAME\) else echo -ne "s\tDistribution:\t"$RELEASE fi exit ;; 3) # CPU type (static) CPUTYPE=$(grep 'model name' /proc/cpuinfo | cut -d':' -f 2 | cut -d' ' -f2- | uniq) echo -ne "s\tCPU Type:\t"$CPUTYPE ;; 4) # current CPU speed VAR=$(grep 'cpu MHz' /proc/cpuinfo | sed 's/.*: *\([0-9]*\)\.[0-9]*/\1 MHz/') echo -ne "CPU speed:\t"$VAR exit ;; 5) # hostname and IP (static) hostname=$(hostname) dnsname=$(dnsdomainname) IP=$(ifconfig eth0 | grep inet | cut -d: -f2 | cut -d' ' -f1) echo -ne "s\tHostname:\t"${hostname:-<unknown>}"\tIP: "${IP:-N/A} exit ;; 6) # fan speeds CPU=$( sensors | grep -i 'fan1' | tr -s ' ' | cut -d' ' -f 2) CASE=$(sensors | grep -i 'fan3' | tr -s ' ' | cut -d' ' -f 2) echo -ne "Fans:\tCPU: "$CPU" rpm\tCase: "$CASE" rpm" exit ;; 7) # temperature of CPU and mainboard CPU=$(sensors | grep -i 'CPU Temperature:' | tr -s ' ' | cut -d' ' -f 2) MB=$( sensors | grep -i 'MB Temperature:' | tr -s ' ' | cut -d' ' -f 2) echo -ne "Temperatures:\tCPU: "$CPU"\tMB: "$MB exit ;; 8) # temperature of GPU & hard disks # GPU=$(nvidia-smi -g 0 -q | grep 'Gpu' | tr -s ' ' | cut -d' ' -f 2) GPU=$(nvidia-settings -c :1.0 -q GPUCoreTemp -t) DISK1=$(hddtemp /dev/sda | cut -d: -f1,3) DISK2=$(hddtemp /dev/sdb | cut -d: -f1,3) echo -ne "\tGPU: +"$GPU".0°C\t"$DISK1"\t"$DISK2 exit ;; 9) # CPU usage echo -e "CPU time:\tCPU%" exit ;; 10) # header (static) echo -ne "s\t\ttotal / free" exit ;; 11) # video disk usage VAR=$(df -Pk /fernsehaufnahmen | tail -n 1 | tr -s ' ' | cut -d' ' -f 2,4) echo -ne "TV rec Disk:\t"$VAR exit ;; 12) # video disk usage VAR=$(df -Pk /videofilme | tail -n 1 | tr -s ' ' | cut -d' ' -f 2,4) echo -ne "Video Disk:\t"$VAR exit ;; 13) # memory usage VAR=$( grep -E 'MemTotal|MemFree' /proc/meminfo | cut -d: -f2 | tr -d ' ') echo -ne "Memory:\t"$VAR exit ;; 14) # swap usage VAR=$(grep -E 'SwapTotal|SwapFree' /proc/meminfo | cut -d: -f2 | tr -d ' ') echo -ne "Swap:\t"$VAR exit ;; test) echo "" echo "Usage: systeminfo.sh {1|2|3|4|...}" echo "" exit 1 ;; esac exit
-
haste denn mal ins oben verlinkte wiki gekuckt?? da wird doch prima beschrieben wie genau vorzugehn ist
Quote
Wir nehmen das mal auseinander.sensors | grep -i 'CPU TEMP' | cut -c 10-18 | tr -d ' '
^ ^ ^
^ ^ Löschen der Leerzeichen
^ ^
^ Gibt 'characters' aus, zeichen 10 bis 18
^
Suchphrase lautet 'CPU TEMP', '-i' steht für 'ignore case distinctions' GROß/klein Schreibungnaja ok,tausch doch in deinem script mal die zeile
gegen
aus! -
danke, jetzt geht´s habe das f 3 übersehen..
-
FYI
so sieht z.B. meine Ausgabe aus
-
Quote
Original von gerdh
FYIso sieht z.B. meine Ausgabe aus
die temp für die hd hätte ich auch gerne.
was braucht man da zu? smarttools?
-
Hi
hddtemp und nen eintrag in /etc/sudoers, wobei man das auch uber netcat machen koennte (dann brauchst den eintrag nicht)
gruss gerd
-
was hast u in die sudoers eingetragen?...oder wie funkt das über netcat?
-
hddtemp habe ich installiert und ein
hddtemp /dev/sda gibt auch eine temp aus.
aber im systeinfo plugin wird leider nichts angezeigt
-
da ich jetzt auf yavdr 0.4.0 pre umgestiegen bin bekomme ich die cpu und motherboard temp nicht mehr angezeigt.
sensors bringt dieses
Code
Display Moreroot@FERNSEH-PC:~# sensors coretemp-isa-0000 Adapter: ISA adapter Core 0: +34.0 C (high = +76.0 C, crit = +100.0 C) coretemp-isa-0001 Adapter: ISA adapter Core 1: +31.0 C (high = +76.0 C, crit = +100.0 C) w83627dhg-isa-0290 Adapter: ISA adapter Vcore: +1.08 V (min = +0.00 V, max = +1.74 V) in1: +1.84 V (min = +1.06 V, max = +1.46 V) ALARM AVCC: +3.34 V (min = +2.98 V, max = +3.63 V) +3.3V: +3.34 V (min = +2.98 V, max = +3.63 V) in4: +1.17 V (min = +1.70 V, max = +0.29 V) ALARM in5: +1.59 V (min = +1.65 V, max = +0.62 V) ALARM in6: +1.00 V (min = +1.35 V, max = +0.61 V) ALARM 3VSB: +3.41 V (min = +2.98 V, max = +3.63 V) Vbat: +3.36 V (min = +2.70 V, max = +3.30 V) ALARM fan1: 1125 RPM (min = 1418 RPM, div = 8) ALARM fan2: 1125 RPM (min = 4440 RPM, div = 8) ALARM fan3: 0 RPM (min = 113 RPM, div = 128) ALARM fan4: 0 RPM (min = 10546 RPM, div = 128) ALARM fan5: 0 RPM (min = 10546 RPM, div = 128) ALARM temp1: +33.0 C (high = -3.0 C, hyst = -37.0 C) ALARM sensor = thermistor temp2: +34.0 C (high = +80.0 C, hyst = +75.0 C) sensor = thermistor temp3: +30.0 C (high = +80.0 C, hyst = +75.0 C) sensor = thermistor cpu0_vid: +0.000 V
die cpu temp wird leider nicht aufgeführt?
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!