About server monitoring software for Linux platform there are many, say the state is not terminal services in Linux system shown here (console), but the page you can view the server status via web. I have installed nagios, linux-dash, psdash etc., a comprehensive comparison, if not large, enterprise-class distributed monitoring, nagios a bit overkill, but linux-dash and psdash as a lightweight framework for status monitoring display , it can be used for portable, simple linux system status display. I compared the effect of both to achieve more inclined psdash web interface (plainly, high psdash color values manually funny ~).
psdash Flask is based on the linux system to view information about the web page, it does not provide API, light and compact, easy to install, the web pages automatically refresh every 3 seconds. Not many online tutorials on psdash installation of (less than linux-dash more, another job so color value by the "crowding out" it? Manual laughing cry), I installed environment based centOS 6.5, ubuntu students use similar installation.
It is recommended to install using the command "su" to switch to the root account.
A. Install the necessary development tools
yum groupinstall "Development Tools" process execution // will ask you twice y / N, y can enter, see the complete Jiuhaola
II. Installing Python
install Python-devel yum // prompted the same input y, you can see the complete
Python setuptools-install yum // prompted enter y, we can see the complete
III. Download source mounted psdash
https://github.com/Jahaja/psdash.git clone git // If you can not find the git command prompt, the first to enter yum install -y git
cd psdash // into the directory
Python setup.py install sudo // This process is waiting for a long time, peace of mind to wait
IV. Start psdash
sudo psdash
Browser and enter localhost: 5000 you can see the status of the machine, and a CPU, memory, network, etc., automatically refresh oh
V. access to encrypted
Well, this will be all right, but the state of the computer that is how private information, but also encryption is not? Access to encrypted on psdash currently online search less relevant Chinese documents, psdash the git interface English documents say about psdash configuration, summary and practice after I read a little, effective pro-test.
mkdir / Home / the User / // New Directory
/home/user/config.py vi // New Profile
Enter the config.py
PSDASH_AUTH_USERNAME = 'Your account'
PSDASH_AUTH_PASSWORD = 'your password'
Save and exit
Add the environment variable to the configuration file
Add in the / etc / profile inside
PSDASH_CONFIG=/home/user/config.py
export PSDASH_CONFIG
Do not forget to save and exit the source / etc / profile
Well, rerun, execute the command
sudo psdash
And then access it on the page, password authentication is not a box of it?
Well, the installation process on this, and if there is anything wrong or the wrong place, please also pointed out, thank you!
References: https: //github.com/Jahaja/psdash