监控网卡流量
-
python监控网卡流量并使用graphite绘图的示例
代码如下: #!/usr/bin/env pythonimport sys,timefrom socket import socketdef read_interface(in_file): with file(in_file) as…
代码如下: #!/usr/bin/env pythonimport sys,timefrom socket import socketdef read_interface(in_file): with file(in_file) as…