Build Psdash Monitoring System

Source: Internet
Author: User
Tags aliyun

I. Introduction of monitoring System

Psdash is a web panel that looks at Linux system information, and another system monitoring tool, glances, Psdash's collection of system information is also done by Psutil. Unlike glances, Psdash does not provide an API, only with a Flask-based web interface that refreshes the data and interface every 3 seconds by default.

Official Introduction: Dashboard Overview of the system displaying data on CPU, disks, network, users, memory, swap and network.

Details can go to the author's address, see Introduction: Https://github.com/Jahaja/psdash (may need to FQ).

Two. Monitoring requirements

1. Through a master control machine, to monitor the remaining server resources running distribution status.

2. Environmental Requirements:

Host: CentOS 6.5 system, python2.6. The process needs to shut down the firewall. or Open 5000 port (Psdash runs on port 5000 by default)

Three. Installation of Psdash software

1. Installing the master server

1 Yum-Y Groupinstall"Development Tools"2 Yum-YInstallpython-devel3 wget-o/etc/Yum. Repos.d/centos-base.repo http://Mirrors.aliyun.com/repo/centos-6.repo4 wgetHttps//pypi.python.org/packages/source/s/setuptools/setuptools-18.3.2.tar.gz#md5= d30c969065bd384266e411c446a86623--no-check-certificate5 Tar-ZXVF setuptools-18.3.2.Tar. GZ6CD setuptools-18.3.27Python setup.pyInstall8 CD..9 wget "HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/P/PIP/PIP-1.5.4.TAR.GZ#MD5=834B2904F92D46AAA333267FB1C922BB"--no-check-CertificateTen Tar-ZXVF pip-1.5.4.Tar. GZ OneCD pip-1.5.4 APython setup.pyInstall -PipInstallPsdash -Psdash &

Basically very simple there is no. The first step above installs the development tool environment, the third step replaces the Yum default source for Ali, the fourth downloads the Pyhton toolkit, and the 9th step downloads the PIP installation tool. Key step in 13 steps, this is the command to install the Psdash program, use the PIP tool to install Psdash.

The last step Psdash & is to run the Psdash program directly and run as a daemon program. The main control machine has been installed, and can now access the http://IP:5000 address through the other host browser, through the Web interface to monitor the host's basic resource information. The key question is, what do we do if we want to monitor the other servers in this console?

Don't be afraid, here is the introduction, how to let other machines also in a Web browser to see. The main use of Psdash command, run time, the execution of registration add address.

2. Client installation, wrote a script. Edit psdash.sh, then save.

1 Yum-Y Groupinstall"Development Tools"2 Yum-YInstallpython-devel3 wget-o/etc/Yum. Repos.d/centos-base.repo http://Mirrors.aliyun.com/repo/centos-6.repo4 wgetHttps//pypi.python.org/packages/source/s/setuptools/setuptools-18.3.2.tar.gz#md5= d30c969065bd384266e411c446a86623--no-check-certificate5 Tar-ZXVF setuptools-18.3.2.Tar. GZ6CD setuptools-18.3.27Python setup.pyInstall8 CD..9 wget "HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/P/PIP/PIP-1.5.4.TAR.GZ#MD5=834B2904F92D46AAA333267FB1C922BB"--no-check-CertificateTen Tar-ZXVF pip-1.5.4.Tar. GZ OneCD pip-1.5.4 APython setup.pyInstall -PipInstallPsdash -Psdash-a--register-to http://192.168.40.160:5000--register-as $ &

Run the script, and can add parameters, as registered to the host computer name, and run in the background. The script is as follows.

1 bash Psdash. SH registered host name &

Four. Monitoring effect

  

Build Psdash Monitoring System

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.