涛子 - 简单就是美

成单纯魁增,永继振国兴,克复宗清政,广开家必升

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  428 随笔 :: 0 文章 :: 19 评论 :: 22万 阅读

07 2016 档案

摘要:控制机 ansible.cfg ssh_config inventory change_link.yaml demo example_play.py 以ansible用户身份登录远程机房内网服务器,sudo切换root权限,返回服务器的网卡流量、连接数、hosts指向 link_info模块 pyt 阅读全文
posted @ 2016-07-28 14:59 北京涛子 阅读(1450) 评论(0) 推荐(0) 编辑

摘要:log srv web srv 阅读全文
posted @ 2016-07-21 15:51 北京涛子 阅读(224) 评论(0) 推荐(0) 编辑

摘要:```python #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib, urllib2 import os, sys, socket import datetime, time import json, re, subprocess import pycurl, cStringIO import threading impor... 阅读全文
posted @ 2016-07-21 12:11 北京涛子 阅读(410) 评论(0) 推荐(0) 编辑

摘要:http://elekslabs.com/2013/12/rrd and rrdtool sar graphs using pyrrd.html http://thepiandi.blogspot.jp/2013/10/graphing real temperature data using.htm 阅读全文
posted @ 2016-07-13 10:09 北京涛子 阅读(403) 评论(0) 推荐(0) 编辑

摘要:分别检测下载速度,丢包率,ping。下载是顺序下载,丢包率,ping使用mtr进行检测,使用多线程。注意的是mtr运行在root用户下,用nrpe用户执行的话,需要配置sudo。 可以将rrd生成png文件。 生成json数据 link_info.py !/usr/bin/env python co 阅读全文
posted @ 2016-07-11 16:40 北京涛子 阅读(639) 评论(0) 推荐(0) 编辑

摘要:这两个是python中的可变参数。 args表示任何多个无名参数,它是一个tuple; kwargs表示关键字参数,它是一个dict。并且同时使用 args和 kwargs时,必须 args参数列要在 kwargs前. 阅读全文
posted @ 2016-07-08 11:31 北京涛子 阅读(215) 评论(0) 推荐(0) 编辑

摘要:http://www.cnblogs.com/lonelycatcher/archive/2012/02/09/2344005.html http://ju.outofmemory.cn/entry/249392 http://nullege.com/codes/search/pycurl http 阅读全文
posted @ 2016-07-06 15:52 北京涛子 阅读(150) 评论(0) 推荐(0) 编辑

摘要:http://www.cnblogs.com/littlehann/p/3708222.html http://seanlook.com/2014/02/23/iptables understand/ http://fishcried.com/2016 02 19/iptables/ http:// 阅读全文
posted @ 2016-07-01 17:37 北京涛子 阅读(304) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示