假设已经安装好graphite1.在客户端上安装collectd,collectd-5.4.0.tar.bz2 执行./configure,make,make install 安装,默认安装位置是/opt/collectd注意:要确保python插件在编译后是yes的。2.安装graphite插件collectd-carbongit clone https://github.com/indygre
初学graphite,我想把统计的连接数以图的形式展现出来,由于连接数的种类的不止一种,所以不能用简单的nc发送,需要发送给carbon。参考官网http://graphite.readthedocs.org/en/latest/feeding-carbon.html改了下example-client.pyimport sys import time import
今天在使用fabric模块时,报出一个错误:from Crypto.Util.number import ceil_shift, exact_log2, exact_div File "/usr/lib/python2.6/site-packages/Crypto/Util/number.py", line 56, in <module> if _fastmath is
#!/bin/sh src_dir=/usr/src start_time(){ start_time="$(date +%s)" echo -e "\033[35;1m$(date) Start install!\033[0m" } end_time(){ end_time="$(date +%s)" total_s=$(($end_time - $start_time)) t
client端:#!/usr/bin/env python import socket,time,os import rlcompleter h,p="192.168.220.130",12346 sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect((h,p)) def runcmd():
Python 2.7 (r27:82500, Jul 7 2013, 21:26:01) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2Type "help", "copyright", "credits" or "license" for more in
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号