推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
jamiesun
V2EX  ›  Python

分享一个 nagios 的 cpu 温度检测插件

  •  
  •   jamiesun ·
    jamiesun · Jul 2, 2014 · 4229 views
    This topic created in 4359 days ago, the information mentioned may be changed or developed.
    6 replies    2014-07-02 21:37:17 +08:00
    chilaoqi
        1
    chilaoqi  
       Jul 2, 2014
    想问,对于VM,检测cpu 温度貌似已经没有什么意义了吧?并且,可以检测到么?
    jamiesun
        2
    jamiesun  
    OP
       Jul 2, 2014
    检测不到,我是用在物理机上的
    iam36
        3
    iam36  
       Jul 2, 2014
    即便物理机,这个接口是基于CPU的调用还是需要主板附带温度测试的硬件?
    jamiesun
        4
    jamiesun  
    OP
       Jul 2, 2014
    是主板芯片支持的,除了cpu 温度还有其他支持的传感设备
    rrfeng
        5
    rrfeng  
       Jul 2, 2014
    从来不关心 CPU 温度……
    只监控负载
    Honwhy
        6
    Honwhy  
       Jul 2, 2014
    你这个插件用到了sensors工具,在centos可以通过yum install lm_sensors安装,然后根据sensors-dect[http://www.lm-sensors.org/wiki/man/sensors-detect]的提示选择。。。
    不过我在VmWare虚拟机试了下,是无法检测到温度的。
    据说是虚拟机不能去主板那里取,
    虚拟机系统和宿主机系统同时操控主板的话,可能会出问题。
    大概记得是这个意思,有一个vmware的论坛的帖子提到这个。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 19:31 · PVG 03:31 · LAX 12:31 · JFK 15:31
    ♥ Do have faith in what you're doing.