From a978e506dd7ba60f8d2c427b25dc1f429059ba73 Mon Sep 17 00:00:00 2001 From: Luis Silva Date: Fri, 29 Apr 2016 10:35:56 -0400 Subject: [PATCH] working great now --- graph_rsnap_runtime.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/graph_rsnap_runtime.py b/graph_rsnap_runtime.py index dd3d96e..645f06d 100755 --- a/graph_rsnap_runtime.py +++ b/graph_rsnap_runtime.py @@ -190,8 +190,9 @@ def total_secs(self): self.metric = int((self.times.days * 86400) + self.times.seconds) def graph_data(self): + content = [] # Open Socket and push all the metrics we have accumulated - content = self.graph_list + content = "".join(self.graph_list) logger.debug("<<< Opening Connection >>>") logger.debug("Pushing data: \n %s" % content) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) @@ -207,7 +208,7 @@ def graph_data(self): s.close() def set_last_times(self): - logger.info(self.last_times_dict) + logger.debug(self.last_times_dict) if bool(self.last_times_dict): pickle.dump(self.last_times_dict, open("save.p", "wb")) @@ -232,6 +233,6 @@ def set_last_times(self): # graphite server name graphite_server = 'graph.rc.fas.harvard.edu' # graphite intake port - graphite_port = '2003' + graphite_port = 2003 # Kick off main script rsnap_runtime()