Browse Source

Fixes and docs

develop
Sven Slootweg 8 years ago
parent
commit
971c5ccce3
  1. 2
      ccollectd/ccollectd
  2. 2
      deps.sh
  3. 1
      install-steps.txt

2
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")

2
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

1
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
Loading…
Cancel
Save