Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530640 - =net-analyzer/nagios-core-4.0.8: warnings logged when performance data is collected
Summary: =net-analyzer/nagios-core-4.0.8: warnings logged when performance data is col...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL: http://tracker.nagios.org/view.php?id...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-25 13:53 UTC by Zentoo
Modified: 2014-11-26 14:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zentoo 2014-11-25 13:53:37 UTC
If nagios 4.0.8 is configured to use performance data (for example with pnp4nagios) then nagios log file is filled with warning messages continuously.

The solution is to add a patch described here:
http://tracker.nagios.org/view.php?id=534
Patch: http://tracker.nagios.org/file_download.php?file_id=205&type=bug

From nagios.log:
[1416923287] Worker 8647: Unknown jobtype: 10
[1416923287] wproc: Unknown job type: 10
[1416923288] Worker 8649: Unknown jobtype: 10
[1416923288] wproc: Unknown job type: 10
[1416923289] Worker 8634: Unknown jobtype: 10
[1416923289] wproc: Unknown job type: 10
[1416923289] Worker 8632: Unknown jobtype: 10
[1416923289] wproc: Unknown job type: 10
[1416923289] Worker 8633: Unknown jobtype: 10
[1416923289] wproc: Unknown job type: 10
[1416923289] Worker 8642: Unknown jobtype: 9
[1416923289] wproc: Unknown job type: 9
[1416923290] Worker 8637: Unknown jobtype: 10
[1416923290] wproc: Unknown job type: 10
[1416923290] Worker 8648: Unknown jobtype: 10
[1416923290] wproc: Unknown job type: 10
[1416923291] Worker 8635: Unknown jobtype: 10
[1416923291] wproc: Unknown job type: 10
[1416923291] Worker 8645: Unknown jobtype: 10
[1416923291] wproc: Unknown job type: 10


Reproducible: Always

Steps to Reproduce:
1.configure nagios with performance data

Actual Results:  
logs are filled with unwanted and unneeded warnings:
[1416923289] Worker 8642: Unknown jobtype: 9
[1416923289] wproc: Unknown job type: 9
[1416923290] Worker 8637: Unknown jobtype: 10
[1416923290] wproc: Unknown job type: 10

Expected Results:  
logs are clean
Comment 1 Michael Orlitzky gentoo-dev 2014-11-25 14:45:49 UTC
Thanks, I'll try to reproduce this and test the patch.
Comment 2 Michael Orlitzky gentoo-dev 2014-11-26 02:16:53 UTC
It's pretty straightforward to reproduce: enable anything with "performance" in the name in /etc/nagios/nagios.cfg, and then watch /var/nagios/nagios.log.
Comment 3 Michael Orlitzky gentoo-dev 2014-11-26 14:33:12 UTC
The patch looks OK, and fixed the issue. I just committed a revbump that includes it:

*nagios-core-4.0.8-r1 (26 Nov 2014)

  26 Nov 2014; Michael Orlitzky <mjo@gentoo.org>
  +files/fix-bogus-perf-data-warnings.patch, +nagios-core-4.0.8-r1.ebuild,
  -nagios-core-4.0.8.ebuild:
  Revbump to fix bugs #388323 and #530640.