Bug 197204 - net-mgmt/nagios4: Fix for number of workers and CPU load in nagios-4.0.8
Summary: net-mgmt/nagios4: Fix for number of workers and CPU load in nagios-4.0.8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-30 18:33 UTC by Rudolf Čejka
Modified: 2015-02-17 13:12 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
Fix for workers. (271 bytes, text/plain)
2015-01-30 18:33 UTC, Rudolf Čejka
no flags Details
patch-lib__nsock.c (271 bytes, patch)
2015-01-30 18:35 UTC, Rudolf Čejka
no flags Details | Diff
patch-lib__iobroker.c (483 bytes, patch)
2015-01-30 18:35 UTC, Rudolf Čejka
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Čejka 2015-01-30 18:33:16 UTC
Created attachment 152385 [details]
Fix for workers.

Until it is fixed in upstream, you could apply these two small patches to nagios-4.0.8 for correct creation of workers, and for too big CPU load.

http://tracker.nagios.org/view.php?id=667
Comment 1 Bugzilla Automation freebsd_committer 2015-01-30 18:33:16 UTC
Auto-assigned to maintainer mat@FreeBSD.org
Comment 2 Rudolf Čejka 2015-01-30 18:35:13 UTC
Created attachment 152386 [details]
patch-lib__nsock.c

I'm sorry, I always forget "purpose" of Description.
Comment 3 Rudolf Čejka 2015-01-30 18:35:47 UTC
Created attachment 152387 [details]
patch-lib__iobroker.c
Comment 4 Rudolf Čejka 2015-01-30 18:45:10 UTC
I'm really sorry - I have tried to add the second patch, but it repeatedly ended with a bug, that I have to reenter source file name. So I filled another bug report (197206), however, when I returned to original bug report, the second attachment is here. How many times I already told, that I hate bugzilla? :o(
Comment 5 Rudolf Čejka 2015-01-30 18:48:07 UTC
Ok. Hope last my comment: Reference for too big CPU load:

http://tracker.nagios.org/view.php?id=668
Comment 6 commit-hook freebsd_committer 2015-02-17 13:12:00 UTC
A commit references this bug:

Author: mat
Date: Tue Feb 17 13:11:07 UTC 2015
New revision: 379159
URL: https://svnweb.freebsd.org/changeset/ports/379159

Log:
  Add a couple of patches to fix the number of workers and CPU load.
  While there, regen patches, and update pkg-message to apache 2.4.

  PR:		197204
  Submitted by:	Rudolf ?ejka
  Sponsored by:	Absolight

Changes:
  head/net-mgmt/nagios4/Makefile
  head/net-mgmt/nagios4/files/extra-patch-html__side.php
  head/net-mgmt/nagios4/files/patch-Makefile.in
  head/net-mgmt/nagios4/files/patch-base__Makefile.in
  head/net-mgmt/nagios4/files/patch-cgi__Makefile.in
  head/net-mgmt/nagios4/files/patch-configure
  head/net-mgmt/nagios4/files/patch-contrib__Makefile.in
  head/net-mgmt/nagios4/files/patch-html__main.php
  head/net-mgmt/nagios4/files/patch-lib_iobroker.c
  head/net-mgmt/nagios4/files/patch-lib_nsock.c
  head/net-mgmt/nagios4/files/patch-sample-config__cgi.cfg.in
  head/net-mgmt/nagios4/files/patch-sample-config__nagios.cfg.in
  head/net-mgmt/nagios4/files/patch-sample-config__template-object__localhost.cfg.in
  head/net-mgmt/nagios4/files/patch-sample-config__template-object__templates.cfg.in
  head/net-mgmt/nagios4/files/pkg-message.in