Skip to content

Instantly share code, notes, and snippets.

@xorpaul
Last active August 29, 2015 14:03
Show Gist options
  • Save xorpaul/6e37358b033486d867b6 to your computer and use it in GitHub Desktop.
Save xorpaul/6e37358b033486d867b6 to your computer and use it in GitHub Desktop.
icinga2_multisite
add tcp socket
cat /etc/xinetd.d/livestatus
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
# limit to 100 connections per second. Disable 3 secs if above.
cps = 100 3
# set the number of maximum allowed parallel instances of unixcat.
# Please make sure that this values is at least as high as
# the number of threads defined with num_client_threads in
# etc/mk-livestatus/nagios.cfg
instances = 500
# limit the maximum number of simultaneous connections from
# one source IP address
per_source = 250
# Disable TCP delay, makes connection more responsive
flags = NODELAY
user = nagios
server = /usr/bin/unixcat
server_args = /var/run/icinga2/cmd/livestatus
# configure the IP address(es) of your Nagios server here:
only_from = 172.233.233.233
disable = no
}
add to /etc/check_mk/multisite.mk
use the tcp socket because the unix socket doesn't work for some reason:
sites = {
"foobar": {
"alias": "foo",
"socket": "tcp:172.233.233.233:6557",
#"socket": "unix:/var/run/icinga2/cmd/livestatus",
"url_prefix": "/",
},
}
also need to use icinga 2 snapshot packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment