From 971c5ccce3b7d6c5b1aa74a5dad93abc2895c4a2 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 9 Dec 2013 01:45:58 +0100 Subject: [PATCH] Fixes and docs --- ccollectd/ccollectd | 2 +- deps.sh | 2 +- install-steps.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ccollectd/ccollectd b/ccollectd/ccollectd index 9bb425a..e44cccd 100755 --- a/ccollectd/ccollectd +++ b/ccollectd/ccollectd @@ -91,7 +91,7 @@ while True: message = msgpack.unpackb(boxes[host].decrypt(sock.recv())) except nacl.exceptions.CryptoError, e: # Probably a spoofed message... skip to next socket - sys.stderr.write("Ignoring message... spoofed?\n") # FIXME: Use logging module... + sys.stderr.write("Ignoring message... spoofed? (origin: %s)\n" % host) # FIXME: Use logging module... continue except Exception, e: sys.stderr.write(repr(e) + "\n") diff --git a/deps.sh b/deps.sh index 1e9dd03..b6623c3 100755 --- a/deps.sh +++ b/deps.sh @@ -1,4 +1,4 @@ #!/bin/bash # You need squeeze-backports if you run this on squeeze! -apt-get install -y libzmq-dev libffi-dev build-essential +apt-get install -y libzmq-dev libffi-dev build-essential python python-dev pip install pyzmq msgpack-python pynacl pyyaml psutil diff --git a/install-steps.txt b/install-steps.txt index 7d57147..87bc508 100644 --- a/install-steps.txt +++ b/install-steps.txt @@ -1,3 +1,4 @@ # 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 +# Replace libzmq with a manually compiled version...: wget http://download.zeromq.org/zeromq-4.0.3.tar.gz; tar -xzvf zeromq-4.0.3.tar.gz; cd zeromq-4.0.3; ./configure; make; make install; ldconfig