摘要:控制机 ansible.cfg ssh_config inventory change_link.yaml demo example_play.py 以ansible用户身份登录远程机房内网服务器,sudo切换root权限,返回服务器的网卡流量、连接数、hosts指向 link_info模块 pyt
阅读全文
涛子 - 简单就是美成单纯魁增,永继振国兴,克复宗清政,广开家必升 |
|
07 2016 档案
摘要:控制机 ansible.cfg ssh_config inventory change_link.yaml demo example_play.py 以ansible用户身份登录远程机房内网服务器,sudo切换root权限,返回服务器的网卡流量、连接数、hosts指向 link_info模块 pyt
阅读全文
摘要:```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...
阅读全文
摘要: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
阅读全文
摘要:分别检测下载速度,丢包率,ping。下载是顺序下载,丢包率,ping使用mtr进行检测,使用多线程。注意的是mtr运行在root用户下,用nrpe用户执行的话,需要配置sudo。 可以将rrd生成png文件。 生成json数据 link_info.py !/usr/bin/env python co
阅读全文
摘要:这两个是python中的可变参数。 args表示任何多个无名参数,它是一个tuple; kwargs表示关键字参数,它是一个dict。并且同时使用 args和 kwargs时,必须 args参数列要在 kwargs前.
阅读全文
摘要:http://www.cnblogs.com/lonelycatcher/archive/2012/02/09/2344005.html http://ju.outofmemory.cn/entry/249392 http://nullege.com/codes/search/pycurl http
阅读全文
摘要:http://www.cnblogs.com/littlehann/p/3708222.html http://seanlook.com/2014/02/23/iptables understand/ http://fishcried.com/2016 02 19/iptables/ http://
阅读全文
|