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()