[omd-commits] OMD Git: omd: mk-livestatus: increase number of allowed livestatus connections

git version control git at mathias-kettner.de
Wed Jul 13 14:48:30 CEST 2011


Module:   omd
Branch:   master
Commit:   86cc74e0e2f948d80d7127162dcb3adc88849111
URL:      http://omdistro.org/projects/omd/repository/revisions/86cc74e0e2f948d80d7127162dcb3adc88849111

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Wed Jul 13 14:48:12 2011 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Wed Jul 13 14:48:12 2011 +0200

mk-livestatus: increase number of allowed livestatus connections

This includes settings for xinet.d

---

 .../skel/etc/mk-livestatus/nagios.cfg              |    2 +-
 .../skel/etc/mk-livestatus/xinetd.conf             |   16 ++++++++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/packages/mk-livestatus/skel/etc/mk-livestatus/nagios.cfg b/packages/mk-livestatus/skel/etc/mk-livestatus/nagios.cfg
index bb67037..54b6d24 100644
--- a/packages/mk-livestatus/skel/etc/mk-livestatus/nagios.cfg
+++ b/packages/mk-livestatus/skel/etc/mk-livestatus/nagios.cfg
@@ -2,6 +2,6 @@
 # This creates a UNIX socket where status and log
 # data can be retrieved by Multisite, NagVis and
 # other addons.
-broker_module=###ROOT###/lib/mk-livestatus/livestatus.o pnp_path=###ROOT###/var/pnp4nagios/perfdata ###ROOT###/tmp/run/live
+broker_module=###ROOT###/lib/mk-livestatus/livestatus.o num_client_threads=20 pnp_path=###ROOT###/var/pnp4nagios/perfdata ###ROOT###/tmp/run/live
 event_broker_options=-1
 
diff --git a/packages/mk-livestatus/skel/etc/mk-livestatus/xinetd.conf b/packages/mk-livestatus/skel/etc/mk-livestatus/xinetd.conf
index d3c7a03..039aef7 100644
--- a/packages/mk-livestatus/skel/etc/mk-livestatus/xinetd.conf
+++ b/packages/mk-livestatus/skel/etc/mk-livestatus/xinetd.conf
@@ -4,9 +4,21 @@ service livestatus
 	socket_type	= stream
 	protocol	= tcp
 	wait		= no
-# limit to 100 connections per second. Disable 3 secs if above.
+
+        # limit to 100 connections per second. Disable 3 secs if above.
 	cps             = 100 3
-# Disable TCP delay, makes connection more responsive
+
+        # 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
 # configure the IP address(es) of your Nagios server here:
 #	only_from       = 127.0.0.1 10.0.20.1 10.0.20.2



More information about the omd-commits mailing list