diff options
author | rodent <rodent@pkgsrc.org> | 2015-06-15 01:29:40 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2015-06-15 01:29:40 +0000 |
commit | c12904657815da59c7098de5da9586af297aba59 (patch) | |
tree | 027628ce1a35c13604c9f751e45cf76bce4e6bcd /net/nagios-base | |
parent | 2cb044bd1780d83e73a76dc2cc8cea5974080b58 (diff) | |
download | pkgsrc-c12904657815da59c7098de5da9586af297aba59.tar.gz |
File descriptor limit on Nagios's queue handler socket is too low. If you
run a system with ~100 hosts and 1100+ checks which run every 1-3 mins,
you will have a very terrible experience with this package. See discussion
at:
http://support.nagios.com/forum/viewtopic.php?f=7&t=33274&p=141473#p141473
This patch changes the limit from a whopping three (3) to 128, which is
more reasonable. Though, if others are continuing to have problems with
this package, we could increase it to 1024. Defuzz the rest of the patches.
Diffstat (limited to 'net/nagios-base')
-rw-r--r-- | net/nagios-base/distinfo | 3 | ||||
-rw-r--r-- | net/nagios-base/patches/patch-lib_nsock.c | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/net/nagios-base/distinfo b/net/nagios-base/distinfo index 8d9a60ecf46..2c683561973 100644 --- a/net/nagios-base/distinfo +++ b/net/nagios-base/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.24 2015/04/12 23:33:06 rodent Exp $ +$NetBSD: distinfo,v 1.25 2015/06/15 01:29:40 rodent Exp $ SHA1 (nagios-4.0.8.tar.gz) = d49586db6905a8e58a082251d8f89ef5c2cab872 RMD160 (nagios-4.0.8.tar.gz) = b53631755e0a23aba918a99f58b7bea237fdd799 @@ -21,6 +21,7 @@ SHA1 (patch-html_Makefile.in) = 33ca19b5cf37839be6fbd851a5dcf29d4d701c8b SHA1 (patch-include_comments.h) = c86328a4f1437ee1dc2b6f97be61693414dd4fce SHA1 (patch-include_locations.h.in) = 0ee376f6737b24f0d4ea8b37781aca70147c5e70 SHA1 (patch-include_statusjson.h) = c5a84b9ef3114f2e2480d719bbb4a24c8965e052 +SHA1 (patch-lib_nsock.c) = e50b9c5ed572fea309eb1c06fea2e0ee8f4d34d3 SHA1 (patch-lib_runcmd.c) = fb34fe5cdc39aca973c1a6e125b125867e6ed262 SHA1 (patch-sample-config_nagios.cfg.in) = 4ad00840ad66d2e01b19c6db76c810fc3fb80795 SHA1 (patch-t-tap_test__xsddefault.c) = db7166fae411a461d8b4a4a31f55af693aeb03b0 diff --git a/net/nagios-base/patches/patch-lib_nsock.c b/net/nagios-base/patches/patch-lib_nsock.c new file mode 100644 index 00000000000..cd195acae02 --- /dev/null +++ b/net/nagios-base/patches/patch-lib_nsock.c @@ -0,0 +1,13 @@ +$NetBSD: patch-lib_nsock.c,v 1.1 2015/06/15 01:29:40 rodent Exp $ + +--- lib/nsock.c.orig 2014-08-12 15:00:01.000000000 +0000 ++++ lib/nsock.c +@@ -81,7 +81,7 @@ int nsock_unix(const char *path, unsigne + if(flags & NSOCK_UDP) + return sock; + +- if(listen(sock, 3) < 0) { ++ if(listen(sock, 128) < 0) { + close(sock); + return NSOCK_ELISTEN; + } |