naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
27 stars 30 forks source link

Implement support for TCP sockets in Livestatus #64

Closed sjoegren closed 4 years ago

sjoegren commented 4 years ago

Implement support for TCP sockets through a config option. The idea is to be able to connect to Naemon/Livestatus over TCP without having to use an additional daemon, like xinetd.

To use it, use inet_addr in broker_module options instead of specifying the path to the unix socket. Example config to listen on all available IPv4 interfaces on TCP port 32768:

broker_module=/usr/lib64/livestatus.so inet_addr=0.0.0.0:32768

This PR also;

sjoegren commented 4 years ago

I've been fixing some issues with the test suite - force push is coming...

jacobbaungard commented 4 years ago

Looks good to me, great job!

sjoegren commented 4 years ago

Squashed test suite commits.