摘要:
https://github.com/acassen/keepalived/blob/v1.2.13/doc/keepalived.conf.SYNOPSIS http://ngyuki.hatenablog.com/entry/2016/04/04/193949 master bash globa 阅读全文
posted @ 2016-08-25 16:36
北京涛子
阅读(363)
评论(0)
推荐(0)
摘要:
https://github.com/acassen/keepalived/blob/v1.2.13/doc/keepalived.conf.SYNOPSIS http://ngyuki.hatenablog.com/entry/2016/04/04/193949 master bash globa 阅读全文
posted @ 2016-08-25 16:36
北京涛子
阅读(363)
评论(0)
推荐(0)
摘要:
centos atomic host安装完成会,第一次启动时会调用cloud init等服务。这是个什么东东? cloud init用于在创建虚拟机时通过元数据服务对虚拟机基本配置,包括常见的主机名,用户,密码等等。cloud init会在启动的过程中分四个阶段运行,按照时间顺序分为: 1. clo 阅读全文
posted @ 2016-08-18 16:14
北京涛子
阅读(368)
评论(0)
推荐(0)
摘要:
控制机 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
北京涛子
阅读(1457)
评论(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
北京涛子
阅读(419)
评论(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
北京涛子
阅读(411)
评论(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
北京涛子
阅读(660)
评论(0)
推荐(0)
摘要:
这两个是python中的可变参数。 args表示任何多个无名参数,它是一个tuple; kwargs表示关键字参数,它是一个dict。并且同时使用 args和 kwargs时,必须 args参数列要在 kwargs前. 阅读全文
posted @ 2016-07-08 11:31
北京涛子
阅读(222)
评论(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
北京涛子
阅读(158)
评论(0)
推荐(0)
|