Page 3 of 4

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 15, 2013 11:03 am
by lmiltchev
Actually, I tested this script for the first time today. It did remove most of the comments like a charm. After applying configuration though, some of the comments (not all) reappeared. It can still be useful.

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 15, 2013 3:49 pm
by WillemDH
I'll try it next week. But there is no offical patch in the near future?

Re: Recurring downtime adding hundreds of comments

Posted: Mon Nov 18, 2013 10:55 am
by slansing
I believe this bug has been fixed, out of curiosity how are you scheduling the downtime that adds so many comments?

Re: Recurring downtime adding hundreds of comments

Posted: Mon Nov 18, 2013 11:19 am
by lmiltchev
I was wrong about the comments in the database. There are some notes stored in the database, but this is different. The comments reappear on nagios restart. I can verify that even if you removed all of the comments, if you have hosts/services scheduled for downtime, new comments WILL BE AUTOMATICALLY CREATED on nagios restart. I am not sure if this is a bug or a feature.

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 11:05 am
by westernuniv
This is definitely a bug. The recurring downtimes work well on individual hosts or services but if a service group is used then that is when the hundreds or thousands of comments are added. I should maybe also point out that some of the services are in multiple service groups. However all of them had hundreds of comments.

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 1:00 pm
by lmiltchev
This is definitely a bug. The recurring downtimes work well on individual hosts or services but if a service group is used then that is when the hundreds or thousands of comments are added.
I am not so sure if this is a bug. Our developers also share this view. I makes sense to have a comment if you have a host/service scheduled for a downtime.

Besides, it works the same way if you schedule a single host or service for a downtime or if you schedule a hostgroup/servicegroup for downtime. Try it yourself. Schedule a single host for recurring downtime. When you see the comment under "Acknowledgements and Comments" (Home->Acknowledgements), delete it. Restart the nagios service:

Code: Select all

service nagios restart
The comment will reappear. The same behavior is observed, when you schedule a downtime for a hostgroup or a servicegroup. The difference is that the number of comments would be higher. :)

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 1:12 pm
by westernuniv
The problem is that a comment is constantly added every hour. Over the course of a weekend I came in Monday morning to thousands of comments on a few dozen hosts/services.

As a temporary work around I deleted the service group recurring downtime (including having to delete the thousands of comments) and added a separate downtime for each host or service - this only adds a single comment.

This cannot be a "feature" - it seriously impacted response time of the interface and general usability.

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 2:02 pm
by lmiltchev
Is upgrading to the latest version of Nagios XI an option for you? There are some bug fixes in R2.5, including the recurring downtime:
2012R2.5 - 10/11/2013
=====================
- Fix the broken recurring downtime script -SW
- Fix further issues with Wizard form buttons in various browsers. -SW
- Fix missing do_page_end in CCM that was possible causing old browsers to not be able to submit form -SW
- Fix Mass Acknowledge problem if language was set to en_EN -NS
- Fix for Scheduled Reports if they are scheduled in the 12AM hour. -AB
- Fix obsess over service in CCM. -AB
http://assets.nagios.com/downloads/nagi ... S-2012.TXT

It is possible that upgrading will fix your issue.

Note: If you have multiple comments for the same downtime, this is not normal. How many comments do you have, compared to the downtimes that are scheduled?

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 2:19 pm
by westernuniv
I have an upgrade scheduled for this Sunday morning. After the upgrade I will test the recurring downtimes again.

Re: Recurring downtime adding hundreds of comments

Posted: Fri Nov 22, 2013 2:48 pm
by lmiltchev
Sounds good. If you are still having issues after the upgrade, please, send us an email at [email protected] in order to open a support ticket in our email ticketing system. We may need to schedule a remote session to further troubleshoot the issue.