diff options
author | makefu <github@syntax-fehler.de> | 2014-01-14 00:20:39 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-01-14 00:20:39 +0100 |
commit | 26308d9fd912648ae4cd08558e49c1ede9e80961 (patch) | |
tree | 4b71d926dffe7c21547579d46a369d3bcc111624 /retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py | |
parent | 83f27b39a2df428e5de137a02014858ae44b4f80 (diff) |
tinc_stats: remove Graphite code
Diffstat (limited to 'retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py')
-rw-r--r-- | retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py b/retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py deleted file mode 100644 index 5002d8e5..00000000 --- a/retiolum/scripts/adv_graphgen/tinc_stats/Graphite.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/python - -import socket -from time import time - -class GraphiteSender: - def __init__(self,host,port=2003,prefix="retiolum"): - self.host = host - self.port = port - self.prefix = prefix - self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - self.sock.connect((host,port)) - - def send(name,data): - # construct a message for graphite, honor the configured prefix - self.sock.send("%s.%s %d %d\r\n"%(self.prefix,name,data,time())) - - def send_raw(path,data): - #ignore the configured prefix, just it to the path given - self.sock.send("%s %d %d\r\n"%(path,data,time())) - -if __name__ == "__main__": - import sys - GraphiteSender(sys.argv[1]).send_raw(sys.argv[2],sys.argv[3]) |