for i in size_list:
tmp = int(i.split('=')[1].replace('"',''))
if tmp > max_size:
max_size = tmp
print max_size
mail_CMD = "echo '%s The number of apache amq entry connections is more then %d' and check! |mail -s 'Apache amq alarm' zhangshifeng@tclub.cn" % (date,max_size) 用if判断如果超出阀值,则发送报警邮件
if max_size < 10:
print "%s The apache amq is ok!" % date
else:
print "%s The number of apache amq entry connections is more then %d and check!" % (date,max_size)
os.system(mail_CMD)总结:Fiddler是最强大最好用的Web调试工具之一,它能记录所有客户端和服务器的http和https请求,允许你监视,设置断点,甚至修改输入输出数据,Fiddler无论对开发人员或者测试人员来说,都是非常有用的工具。