Plugin de sensores do Glances: “Nenhum arquivo ou diretório: '/ sys / class / hwmon / hwmon0 / device / name'”

0

Eu uso Olhares ( mirror ) para monitorar no meu computador (Ubuntu 14.04.5 LTS x64 + Glances==2.8.5 . A atualização para a versão mais recente Glances==2.8.8 não ajudou).

Depois de instalar os sensores ( mirror ) plug-in, recebo esta mensagem de erro sempre que tentei executar sudo glances :

mlee@server:~$ sudo glances
Traceback (most recent call last):
  File "/usr/local/bin/glances", line 11, in <module>
    load_entry_point('Glances==2.8.5', 'console_scripts', 'glances')()
  File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 225, in main
    start_standalone(config=config, args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/__init__.py", line 105, in start_standalone
    standalone = GlancesStandalone(config=config, args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/standalone.py", line 43, in __init__
    self.stats = GlancesStats(config=config, args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 43, in __init__
    self.load_modules(self.args)
  File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 77, in load_modules
    self.load_plugins(args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/stats.py", line 105, in load_plugins
    self._plugins[plugin_name] = plugin.Plugin(args=args)
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_sensors.py", line 53, in __init__
    self.glancesgrabsensors = GlancesGrabSensors()
  File "/usr/local/lib/python2.7/dist-packages/glances/plugins/glances_sensors.py", line 229, in __init__
    self.stemps = psutil.sensors_temperatures()
  File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 2212, in sensors_temperatures
    rawdict = _psplatform.sensors_temperatures()
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 1108, in sensors_temperatures
    binary=False)
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 298, in cat
    with open_binary(fname) if binary else open_text(fname) as f:
  File "/usr/local/lib/python2.7/dist-packages/psutil/_pslinux.py", line 204, in open_text
    return open(fname, "rt", **kwargs)
IOError: [Errno 2] No such file or directory: '/sys/class/hwmon/hwmon0/device/name'

Eu tentei:

sudo apt-get install -y lm-sensors
sudo apt-get install -y hddtemp
sudo pip install PsUtil

Não ajudou. O que preciso fazer para que /sys/class/hwmon/hwmon0/device/name contenha algo que satisfaça glances ?

Saída de sensor :

mlee@server:~$ sensors
power_meter-acpi-0
Adapter: ACPI interface
power1:      290.00 W  (interval =   1.00 s)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +35.0°C  (high = +92.0°C, crit = +102.0°C)
Core 0:         +26.0°C  (high = +92.0°C, crit = +102.0°C)
Core 2:         +30.0°C  (high = +92.0°C, crit = +102.0°C)
Core 3:         +35.0°C  (high = +92.0°C, crit = +102.0°C)
Core 4:         +28.0°C  (high = +92.0°C, crit = +102.0°C)
Core 8:         +25.0°C  (high = +92.0°C, crit = +102.0°C)
Core 10:        +26.0°C  (high = +92.0°C, crit = +102.0°C)
Core 11:        +32.0°C  (high = +92.0°C, crit = +102.0°C)
Core 12:        +28.0°C  (high = +92.0°C, crit = +102.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Physical id 1:  +34.0°C  (high = +92.0°C, crit = +102.0°C)
Core 0:         +31.0°C  (high = +92.0°C, crit = +102.0°C)
Core 2:         +27.0°C  (high = +92.0°C, crit = +102.0°C)
Core 3:         +26.0°C  (high = +92.0°C, crit = +102.0°C)
Core 4:         +26.0°C  (high = +92.0°C, crit = +102.0°C)
Core 8:         +26.0°C  (high = +92.0°C, crit = +102.0°C)
Core 10:        +33.0°C  (high = +92.0°C, crit = +102.0°C)
Core 11:        +29.0°C  (high = +92.0°C, crit = +102.0°C)
Core 12:        +26.0°C  (high = +92.0°C, crit = +102.0°C)

Saída de ls /sys/bus/platform/devices/ :

mlee@server:~$ ls /sys/bus/platform/devices/
alarmtimer        GHES.1            iTCO_wdt                reg-dummy
coretemp.0        GHES.2            microcode               serial8250
coretemp.1        gpio_ich          pcspkr
Fixed MDIO bus.0  ipmi_bmc.0852.32  platform-framebuffer.0

Saída de grep HWMON /boot/config-3.13.0-100-generic :

mlee@server:/scratch$ grep HWMON /boot/config-3.13.0-100-generic
CONFIG_IGB_HWMON=y
CONFIG_IXGBE_HWMON=y
CONFIG_HWMON=y
CONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
CONFIG_SENSORS_IIO_HWMON=m
CONFIG_THERMAL_HWMON=y

Saída de uname -r :

mlee@server:/scratch$ uname -r
3.13.0-100-generic
    
por Franck Dernoncourt 15.03.2017 / 04:57

0 respostas

Tags