监控Linux服务器cpu 频率及温度,求大神解答

qq_33933818 2019-03-27 01:58:39
目前我使用的是i7z这个工具实时获取到服务器cpu的温度及频率,但是我目前无法实现脚本远程监控。
1.i7z是交互命令,直接ssh user@host /i7z 无法获取温度频率日志。
---------------------------------------------------------------------------------------
i7z DEBUG: i7z version: svn-r93-(27-MAY-2013)
i7z DEBUG: Found Intel Processor
i7z DEBUG: Stepping 7
i7z DEBUG: Model d
i7z DEBUG: Family 6
i7z DEBUG: Processor Type 0
i7z DEBUG: Extended Model 2
i7z DEBUG: msr = Model Specific Register
i7z DEBUG: Detected an i7 - 32nm (haven't seen this version around, do write to me with the model number)
i7z DEBUG: msr device files exist /dev/cpu/*/msr
i7z DEBUG: You have write permissions to msr device files

------------------------------
--[core id]--- Other information
-------------------------------------
--[0] Processor number 0
--[0] Socket number/Hyperthreaded Sibling number 0,-1
--[0] Core id number 0
--[0] Display core in i7z Tool: Yes

--[1] Processor number 1
--[1] Socket number/Hyperthreaded Sibling number 0,-1
--[1] Core id number 1
--[1] Display core in i7z Tool: Yes

Socket-0 [num of cpus 2 physical 2 logical 2] 0,1,
Socket-1 [num of cpus 0 physical 0 logical 0]
GUI has been Turned ON
Quitting i7z
---------------------------------------------------------------------------------------

2.i7z在本地自己测试的时候发现 ./i7z > 1.log 。 1.log日志中包含很多的格式符号,不知如何处理
---------------------------------------------------------------------------------------
GUI has been Turned ON
^[[1;46r^[[0;10m^[[4l^[[?7h^[[39;49m^[[39;49m^[[0;10m^[[H^[[JCpu speed from cpuinfo 3399.00Mhz^
M
True Frequency (without accounting Turbo) 3399 MHz^M

Socket [0] - [physical cores=6, logical cores=6, max online cores ever=6]^M
CPU Multiplier 34x || Bus clock frequency (BCLK) 99.97 MHz^M
TURBO ENABLED on 6 Cores, Hyper Threading OFF^M
Max Frequency without considering Turbo 3498.97 MHz (99.97 x [35])^M
Max TURBO Multiplier (if Enabled) with 1/2/3/4/5/6 cores is 36x/36x/36x/36x/36x/36x^M
Real Current Frequency 3599.79 MHz (Max of below)^[[10;9HCore [core-id] :Actual Freq (Mult.)
C0% Halt(C1)% C3 % C6 % Temp VCore^[[11;9HCore 1 [0]: 3599.46 (36.01x)^[[1
1;52H1 99.1 0 0 52 1.0522^[[12;9HCore 2 [2]: 3599.65 (36.01x)
4.91 94.8 0 0 55 1.0516^[[13;9HCore 3 [4]: 3599.71 (36.01x)^[
[13;52H1 99.7 0 0 55 1.0717^[[14;9HCore 4 [6]: 3599.79 (36.01x)^
[[14;52H1 99.9 0 0 56 1.0548^[[15;9HCore 5 [8]: 3599.60 (36.01x)
^[[15;52H1 99.7 0 0 52 1.0571^[[16;9HCore 6 [10]: 3595.42 (35.96x
)^[[16;52H1 100 0 0 54 1.0715^M^[[32dC0 = Processor running without hal
ting^M
C1 = Processor running with halts (States >C0 are power saver)^M
C3 = Cores running with PLL turned off and core cache turned off^M
C6 = Everything in C3 + core state saved to last level cache^M
Above values in table are in percentage over the last 1 sec^M
[core-id] refers to core-id number in /proc/cpuinfo^M
'Garbage Values' message printed when garbage values are read^M
Ctrl+C to exit^M^[[10d^[[46;1H^M
---------------------------------------------------------------------------------------
...全文
537 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianshiyeben 2020-01-01
  • 打赏
  • 举报
回复 2
现在都用wgcloud集群监控平台了,代码全部开源,微服务架构,安装部署也简单。 下载http://www.wgstart.com

19,613

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧