小编And*_*son的帖子

如何使用 Smartmontools 触发离线数据收集?

我刚刚购买了一个新的 SSD,我正试图弄清楚如何监控它的预期寿命。当我跑

sudo smartctl -a /dev/sda
Run Code Online (Sandbox Code Playgroud)

它报告

...
General SMART Values:
Offline data collection status:  (0x80) **Offline data collection activity
                    was never started**.
...
Run Code Online (Sandbox Code Playgroud)

此外,我注意到一些统计数据显示为“始终”或“离线”更新:

$ sudo smartctl -data -A /dev/sda
...
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE    
...    
198 Offline_Uncorrectable   0x0030   100   100   001    Old_age   **Offline**      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   001    Old_age   **Always**       -       0
202 **Perc_Rated_Life_Used**    0x0018   100   100   001    Old_age   **Offline**      -       0
206 Write_Error_Rate        0x000e   100   100   001    Old_age …
Run Code Online (Sandbox Code Playgroud)

ssd disk smart

14
推荐指数
2
解决办法
6283
查看次数

如何让系统监视器指示器显示温度?

System Monitor Indicator 带有显示 CPU 负载、内存使用情况和其他系统统计信息的选项,但目前不包括显示温度(CPU、HDD、SSD、GPU 等)的选项。

在此处输入图片说明

似乎内置了通过应用命令(通过单击“新建”)来添加其他传感器的功能。但是,我不知道怎么做,也找不到任何描述此功能的文档。

我的系统设置为报告温度,如下所示:

user@host:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +27.8°C  (crit = +106.0°C)
temp2:        +29.8°C  (crit = +106.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +79.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:         +79.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:         +77.0°C  (high = +87.0°C, crit = +105.0°C)

pkg-temp-0-virtual-0
Adapter: Virtual device
temp1:        +79.0°C  
Run Code Online (Sandbox Code Playgroud)

这个问题指的是 13.04 raring 中的包 indicator-sysmonitor 0.4.3 版,尽管目前我在 13.10 saucy 安装上运行它,因为它尚未在 ppa 中更新:

https://launchpad.net/indicator-sysmonitor

indicator unity sensors temperature 13.10

10
推荐指数
1
解决办法
2万
查看次数

如何安静 Ubuntu 15.04 嘈杂的系统日志

在 Ubuntu 15.04 (Vivid Vervet)/var/log/syslog上非常嘈杂。每隔几秒就会有一条消息,来自systemdthermaldgnome-session。大多数消息似乎不是必需的,只是一遍遍重复的状态或调试消息。

我发现这使得使用 syslog 来解决问题、监控错误和故障变得非常困难,因为日志中充满了来自各种守护进程的重复的非必要状态消息块。有没有办法配置系统以禁用系统日志中的此类消息?谢谢。

例如,以下thermald消息块在系统日志中每 10-60 秒重复一次:

May 30 17:37:14 xxx thermald[960]: Dropped below poll threshold
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 0:Processor
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 4:intel_powerclamp
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 6:intel_pstate
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset index 5:rapl_controller
May 30 17:37:14 xxx thermald[960]: thd_trip_cdev_state_reset …
Run Code Online (Sandbox Code Playgroud)

syslog systemd 15.04

7
推荐指数
1
解决办法
2344
查看次数

标签 统计

13.10 ×1

15.04 ×1

disk ×1

indicator ×1

sensors ×1

smart ×1

ssd ×1

syslog ×1

systemd ×1

temperature ×1

unity ×1