From 86b013a0b7298ae4fa1181c88cb59c4782520b0a Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 9 Dec 2013 00:55:21 +0100 Subject: [PATCH] Be more lenient towards receiving errors, and update install/todo notes --- ccollectd/ccollectd | 3 +++ install-steps.txt | 2 +- todo.txt | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ccollectd/ccollectd b/ccollectd/ccollectd index c9efa72..9bb425a 100755 --- a/ccollectd/ccollectd +++ b/ccollectd/ccollectd @@ -93,6 +93,9 @@ while True: # Probably a spoofed message... skip to next socket sys.stderr.write("Ignoring message... spoofed?\n") # FIXME: Use logging module... continue + except Exception, e: + sys.stderr.write(repr(e) + "\n") + continue distributor.send(msgpack.packb({ "host": host, "message": message diff --git a/install-steps.txt b/install-steps.txt index 7818b21..7d57147 100644 --- a/install-steps.txt +++ b/install-steps.txt @@ -1,3 +1,3 @@ -# Backports: echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list +# Backports: echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list && apt-get update && apt-get upgrade apt-get install -y python python-dev && wget cryto.net/~joepie91/pipfix.sh && chmod +x pipfix.sh && ./pipfix.sh adduser --system --shell /bin/bash --group monitor && apt-get install -y git; su -c "cd ~; git clone https://github.com/joepie91/cryto-status.git" monitor && /home/monitor/cryto-status/deps.sh diff --git a/todo.txt b/todo.txt index 130b726..b29cbb8 100644 --- a/todo.txt +++ b/todo.txt @@ -2,3 +2,4 @@ * heartbeat slaves * web interface (angularjs) * separate alarm and IRC logic +* monitor inodes