V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2014-07-02 09:37:54 +08:00 · 3668 次点击
    这是一个创建于 3589 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    2014-07-02 21:37:17 +08:00
    chilaoqi
        1
    chilaoqi  
       2014-07-02 12:44:25 +08:00
    想问,对于VM,检测cpu 温度貌似已经没有什么意义了吧?并且,可以检测到么?
    jamiesun
        2
    jamiesun  
    OP
       2014-07-02 12:46:39 +08:00
    检测不到,我是用在物理机上的
    iam36
        3
    iam36  
       2014-07-02 15:31:38 +08:00
    即便物理机,这个接口是基于CPU的调用还是需要主板附带温度测试的硬件?
    jamiesun
        4
    jamiesun  
    OP
       2014-07-02 16:34:19 +08:00
    是主板芯片支持的,除了cpu 温度还有其他支持的传感设备
    rrfeng
        5
    rrfeng  
       2014-07-02 17:00:21 +08:00
    从来不关心 CPU 温度……
    只监控负载
    Honwhy
        6
    Honwhy  
       2014-07-02 21:37:17 +08:00
    你这个插件用到了sensors工具,在centos可以通过yum install lm_sensors安装,然后根据sensors-dect[http://www.lm-sensors.org/wiki/man/sensors-detect]的提示选择。。。
    不过我在VmWare虚拟机试了下,是无法检测到温度的。
    据说是虚拟机不能去主板那里取,
    虚拟机系统和宿主机系统同时操控主板的话,可能会出问题。
    大概记得是这个意思,有一个vmware的论坛的帖子提到这个。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1093 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 18:41 · PVG 02:41 · LAX 11:41 · JFK 14:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.