Recurring downtime adding hundreds of comments

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime adding hundreds of comments

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Recurring downtime adding hundreds of comments

Post by WillemDH »

I'll try it next week. But there is no offical patch in the near future?
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Recurring downtime adding hundreds of comments

Post by slansing »

I believe this bug has been fixed, out of curiosity how are you scheduling the downtime that adds so many comments?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime adding hundreds of comments

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
westernuniv
Posts: 120
Joined: Tue Aug 21, 2012 9:29 am

Re: Recurring downtime adding hundreds of comments

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime adding hundreds of comments

Post 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. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
westernuniv
Posts: 120
Joined: Tue Aug 21, 2012 9:29 am

Re: Recurring downtime adding hundreds of comments

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime adding hundreds of comments

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
westernuniv
Posts: 120
Joined: Tue Aug 21, 2012 9:29 am

Re: Recurring downtime adding hundreds of comments

Post by westernuniv »

I have an upgrade scheduled for this Sunday morning. After the upgrade I will test the recurring downtimes again.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recurring downtime adding hundreds of comments

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked