发布时间:2017-07-26 10:06:20
1、编写agentd端python监控脚本[root@bj1-10-112-80-11 etc]# cat check_port.py #!/usr/bin/python__author__ = 'Yan'import osimport jsondata = {}tcp_list = []port_list = []t = ['2000','2001','2002','2003','2004','2005','2006','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016'.........【阅读全文】
发布时间:2017-07-01 17:18:43
#encoding=utf8 import loggingimport MySQLdbdef olddb(): return DB("200db",3306,"user","password","dbname")def newdb(): return DB("200db",3306,"user","password","dbname")class DB(): def __init__(self,db_host,db_port,db_user,db_pwd.........【阅读全文】