naparuba/shinken — pull request #733 by thomascellerier (2013-02-12 16:12:35+00:00)
Title: Add a  ZeroMQ Broker module called zmq_broker

Add a ZeroMQ (http://www.zeromq.org/) broker to publish monitoring updates on a ZeroMQ PUB socket. This means that any number of subscribers can listen on the specified endpoint (tcp, inter process or in memory) for monitoring updates.

Serializes the monitoring update before sending them as a ZeroMQ message.
Two serialization methods are available in this initial version:
- JSON
- Msgpack (http://msgpack.org/)

The module takes two options so far:
- pub_endpoint: The endpoint to which ZeroMQ will publish messages. See http://api.zeromq.org/2-1:zmq-tcp, http://api.zeromq.org/2-1:zmq-ipc, http://api.zeromq.org/2-1:zmq-inproc.
- serialize_to: The serialization method to use for the outgoing data. Can be 'json' or 'msgpack'. The default is 'json'.

Initial TODO list:
- Make sure everything is serialized correctly.
- Use ZeroMQ topics to be able to filter by interest.
- AND/OR Provide filters to select what data to send on the topic in the module configuration.