Fixes and docs

Sven Slootweg 10 years ago
parent 86b013a0b7
commit 971c5ccce3

@ -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...
except Exception, e:
sys.stderr.write(repr(e) + "\n")

@ -1,4 +1,4 @@
# 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

@ -1,3 +1,4 @@
# Backports: echo "deb squeeze-backports main" >> /etc/apt/sources.list && apt-get update && apt-get upgrade
apt-get install -y python python-dev && wget && chmod +x && ./
adduser --system --shell /bin/bash --group monitor && apt-get install -y git; su -c "cd ~; git clone" monitor && /home/monitor/cryto-status/
# Replace libzmq with a manually compiled version...: wget; tar -xzvf zeromq-4.0.3.tar.gz; cd zeromq-4.0.3; ./configure; make; make install; ldconfig