Nagios 4.4.0+1 Number of Comments is redoubling each reload

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios 4.4.0+1 Number of Comments is redoubling each reload

Postby christimpaler » Tue Jun 26, 2018 7:24 am

Hi folks,
a few days ago I updated to nagios 4.4.0 and today I installed version 4.4.1, but the problem (maybe a bug?) still remains.

When a comment is added to a service (due to problem acknowledgement) the number of comments ist redoubling each time the nagios daemon is reloaded (this does not happen when restarting the nagios daemon). So after a certain amount of time a service can own 8192 or more comments and nagios is slowing down daramatically. Meanwhile the files "status.dat" and "retention.dat" continue growing. Usually these files are 8 MB, but with all the comments they grow to 500 MB and more.

We use RHEL 7.5.

DO you have any similar experiences? We have two installations with the same behaviour.
Best regards

C.I.
christimpaler
 
Posts: 4
Joined: Wed Jan 09, 2013 1:38 am

Re: Nagios 4.4.0+1 Number of Comments is redoubling each rel

Postby cdienger » Wed Jun 27, 2018 4:05 pm

Thanks for bringing this to our attention. I've been able to reproduce and will look into it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
cdienger
Support Tech
 
Posts: 3795
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios 4.4.0+1 Number of Comments is redoubling each rel

Postby bheden » Wed Jun 27, 2018 4:47 pm

Fixed in this commit:

https://github.com/NagiosEnterprises/na ... 990ed88c95

A patch for you would look something like:

Code: Select all
sed -i 's/cleanup_downtime_data();/cleanup_downtime_data();free_comment_data();/' base/nagios.c


And then recompile. Or you could simply download the current maint branch from GitHub.

Thank you for pointing this out.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
bheden
Product Development Manager
 
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Nagios 4.4.0+1 Number of Comments is redoubling each rel

Postby christimpaler » Thu Jun 28, 2018 12:56 am

Thank you for this quick solution. I recompiled and now the number of comments remains unchanged.
Topic can be closed.
Have a nice day.
C.I.
christimpaler
 
Posts: 4
Joined: Wed Jan 09, 2013 1:38 am

Re: Nagios 4.4.0+1 Number of Comments is redoubling each rel

Postby scottwilkerson » Thu Jun 28, 2018 7:34 am

Excellent! Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17032
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 10 guests