摘要
本文介绍了一种基于Python的服务器监测系统的设计,系统部署在需要监测的服务器上能够实时监测服务器的CPU、内存、磁盘空间。每天定时(可人工设置)自动发邮件报告服务器状态。当CPU一直处于异常忙碌状态时或者磁盘剩余空间少于一定量时,系统还会发邮件进行警报。利用Python语言开源、简洁等优势,使得该系统具有可移植性强、部署方便等优点。
This paper introduces the design of a server monitoring system based on Python.The system can monitor the server's CPU,memory and disk space.The System can(can be manually set) automatically send e-mail report server status every day at regular time.When the CPU has been in a state of abnormal busy or disk space is low,the system will send e-mail to warn the administrator.Using the advantages of Python language,such as open source,concise and so on,the system has the advantages of portability,easy deployment and so on.
出处
《电脑知识与技术(过刊)》
2017年第1X期20-21,共2页
Computer Knowledge and Technology