涛子 - 简单就是美

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

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

07 2015 档案

摘要:####documenthttp://iwantmyreal.name/blog/2012/09/16/visualising-conair-data-with-cubism-dot-jshttps://hveem.no/vm-monitoring-using-salt-and-cubismhttp... 阅读全文
posted @ 2015-07-29 10:23 北京涛子 阅读(1008) 评论(1) 推荐(0) 编辑

摘要:kubernetes docker -> paasopenstack opennebula -> iaas 阅读全文
posted @ 2015-07-27 15:34 北京涛子 阅读(158) 评论(0) 推荐(0) 编辑

摘要:http://influxdb-python.readthedocs.org/en/latest/####api接口,返回数组```python#!/usr/bin/env python# -*- encoding: utf-8 -*-import jsonimport yamlfrom flask... 阅读全文
posted @ 2015-07-27 11:30 北京涛子 阅读(2995) 评论(0) 推荐(0) 编辑

摘要:####功能访问远程交换机snmp数据,写入本地influxdb数据库```python#!/usr/bin/env python# -*- encoding: utf-8 -*-import os, yaml, timeimport cPickle as pickleimport threadin... 阅读全文
posted @ 2015-07-24 17:21 北京涛子 阅读(734) 评论(0) 推荐(0) 编辑

摘要:```pythonimport threadingimport timeimport loggingimport randomimport Queuelogging.basicConfig(level=logging.DEBUG, format='(%(thre... 阅读全文
posted @ 2015-07-24 17:12 北京涛子 阅读(209) 评论(0) 推荐(0) 编辑

摘要:使用thread和threading这两个模块.threading模块是对thread做了一些包装的,可以更加方便的被使用,所以我们使用threading模块实现多线程编程。使用线程有两种模式:1)创建线程要执行的函数,把这个函数传递进Thread对象里,让它来执行;2)直接从Thread继承,创建... 阅读全文
posted @ 2015-07-22 14:32 北京涛子 阅读(194) 评论(0) 推荐(0) 编辑

摘要:####installyum install python-pysnmpyum install python-pyasn1or pip install pysnmppip install pyasn1####documenthttp://ports.gnu-darwin.org/net-mgmt/p... 阅读全文
posted @ 2015-07-21 11:29 北京涛子 阅读(920) 评论(0) 推荐(0) 编辑

摘要:####installyum -y install PyYAML####documenthttp://www.showyounger.com/show/101586.htmlhttp://pyyaml.org/wiki/PyYAMLDocumentation####yaml.load() 将yaml... 阅读全文
posted @ 2015-07-20 17:05 北京涛子 阅读(417) 评论(0) 推荐(0) 编辑

摘要:doc https://collectd.org/wiki configure https://github.com/collectd/collectd/issues/610 /usr/share/collectd/types.db 1个端口 所有端口 push dat... 阅读全文
posted @ 2015-07-16 15:36 北京涛子 阅读(971) 评论(0) 推荐(0) 编辑

摘要:####文档https://influxdb.com/docs/v0.9/introduction/overview.html####配置文件/etc/opt/influxdb/influxdb.conf```bashreporting-disabled = false[meta] dir = "... 阅读全文
posted @ 2015-07-16 10:11 北京涛子 阅读(994) 评论(0) 推荐(0) 编辑

摘要:```doc``` http://nvd3-community.github.io/nvd3/examples/documentation.htmlhttps://github.com/mbostock/d3/wikihttp://pkuwwt.gitcafe.io/d3-tutorial-cn/a... 阅读全文
posted @ 2015-07-08 10:24 北京涛子 阅读(758) 评论(0) 推荐(0) 编辑

摘要:http://legacy.python.org/dev/peps/pep-3143/#python-daemon####installyum install python-daemon####example```pythonimport daemonfrom spam import do_main... 阅读全文
posted @ 2015-07-02 12:53 北京涛子 阅读(324) 评论(0) 推荐(0) 编辑

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