前面已经写过Python3发邮件,Python发微信的文章了。直接导入即可。 import configparser,requests from time import sleep import WeChat,Mail,datetime class checkurl(object ...
最近公司erp服务器无规律 不间断 时不时抽风,往往都是挂了快个把小时后其它部门的人才打电话过来说服务器挂了。于是用python写了一个简单的网页监控。程序主要监控网页状态码, 为正常,否则视为服务器挂了。每隔 秒查询一次,若发现三次连续的查询中都报错误,则通过预先设定的邮箱发送警告邮件。邮件发送后隔 分钟再次监控设定网页。 verson 直接将日志直接通过屏幕输出 verson 日志将在同目录下 ...
2015-03-17 17:56 0 2175 推荐指数:
前面已经写过Python3发邮件,Python发微信的文章了。直接导入即可。 import configparser,requests from time import sleep import WeChat,Mail,datetime class checkurl(object ...
...
打算用这个脚本通过zabbix 监控Mariadb的,无奈要等Mariadb完全上线才行,所以先写一个粗略大致功能的版本。 #coding:utf-8 #author:shiyiwen #version:1.1 #display:monitor mariadb galera cluster ...
通过python获取服务器cpu、内存、流量信息 cpu 内存 网卡 ...
Python 利用WMI监控windows状态如CPU、内存、硬盘 安装pywin32库 下载地址: https://sourceforge.net/projects/pywin32/files%2Fpywin32/ 选择对应python版本的文件。 下载后在windows安装 ...
安装pywin32库 下载地址: https://sourceforge.net/projects/pywin32/files%2Fpywin32/选择对应python版本的文件。下载后在windows安装好。 安装wmi库 下载地址:https ...
Monitoring a Cluster Once you have a running cluster, you may use the ceph tool to monitor your ...