查看 Linux 系统信息的 web 面板 psdash

psdash 是一款查看 Linux 系统信息的 web 面板,和我们以前提到的另一款系统监控工具 Glances 一样,psDash 的系统信息的采集也是由 psutil 完成的。和 Glances 不同的是,psdash 没有提供 API,只带了一个基于 Flask 的 web 界面,默认每3秒刷新一次数据和界面。

升级系统后安装必要软件包:

$ sudo apt-get update
$ sudo apt-get upgrade

$ sudo apt-get install git gcc python-dev python-setuptools

下载 psdash 源代码后安装:

$ git clone https://github.com/Jahaja/psdash.git
$ cd psdash
$ sudo python setup.py install

启动 psdash:

$ sudo psdash --log /var/log/psdash.log --log /var/log/mydb.log

打开浏览器访问 http://192.168.2.99:5000/

psdash

评论 (5 Comments)

  1. 呃,python+flask+bootstrap 吧~

  2. python+flask+bootstrap 是吗??

  3. [[email protected] ~]# psdash
    Traceback (most recent call last):
    File “/usr/bin/psdash”, line 9, in
    load_entry_point(‘psdash==0.3.0’, ‘console_scripts’, ‘psdash’)()
    File “/usr/lib/python3.4/site-packages/pkg_resources.py”, line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File “/usr/lib/python3.4/site-packages/pkg_resources.py”, line 2363, in load_entry_point
    return ep.load()
    File “/usr/lib/python3.4/site-packages/pkg_resources.py”, line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), [‘__name__’])
    File “/usr/lib/python3.4/site-packages/psdash-0.3.0-py3.4.egg/psdash/web.py”, line 14, in
    from log import Logs
    ImportError: No module named ‘log’

    [[email protected] ~]# uname -a
    Linux Promise 3.14.1-1-ARCH #1 SMP PREEMPT Mon Apr 14 20:40:47 CEST 2014 x86_64 GNU/Linux

  4. pkg_resources.DistributionNotFound: argparse 怎么解决

  5. 能以https的方式访问哪个url吗?

发表评论