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
Livid
V2EX  ›  Python

psutil

  •  
  •   Livid · 2012-06-14 07:28:05 +08:00 · 3135 次点击
    这是一个创建于 4334 天前的主题,其中的信息可能已经有所发展或是发生改变。
    好东西啊,用来查看系统的各种状态,API 太简洁了。

    http://code.google.com/p/psutil/
    7 条回复    1970-01-01 08:00:00 +08:00
    myrual
        1
    myrual  
       2012-06-14 08:46:48 +08:00
    比login到远程主机自己查看的优点是什么呢?
    可以写一个定时报告的脚本然后存下来么?
    ratazzi
        2
    ratazzi  
       2012-06-14 09:01:48 +08:00
    可以查看指定进程的网络链接,我觉得在 Mac 上 netstat 不能查看进程相关信息的情况下就很有用
    Livid
        3
    Livid  
    MOD
    OP
       2012-06-14 09:05:47 +08:00
    @myrual 嗯,用来写服务器监控软件会很有用。
    myrual
        4
    myrual  
       2012-06-14 09:22:32 +08:00
    比snmp有什么不同呢?
    通过web.py可以搭一个页面来看系统负载,还可以用cron来定时收集系统信息,然后存储
    zealot
        5
    zealot  
       2012-06-14 10:19:49 +08:00
    0bit
        6
    0bit  
       2013-04-02 17:34:18 +08:00
    太好用了,不用受snmp的折磨了
    Livid
        7
    Livid  
    MOD
    OP
       2013-04-03 04:12:07 +08:00
    @zealot 对,甚至可以用在 Solaris 上。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4824 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 01:11 · PVG 09:11 · LAX 18:11 · JFK 21:11
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.