This host has been scheduled for fixed downtime comment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

This host has been scheduled for fixed downtime comment

Post by snapon_admin »

Why is this comment added, or rather re-added to a host several times when downtime is scheduled? We're using Troy's history tab component and the tab can sometimes be clogged with this message over and over and over because it is apparently re-added to the host several times. In this example the downtime was entered on 05-01-2015 (when we were notified by our provider of the maintenance) but isn't actually scheduled until 05-30-2015. The canned comment seems to be re-added several times, at random intervals and makes using the history tab....difficult:
downtimewtf.png
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: This host has been scheduled for fixed downtime comment

Post by jolson »

Are these messages definitely appearing at random intervals, or is this something that you can reproduce?

There definitely isn't a pattern, so I'm wondering if viewing the host causes the downtime comment to be added to your history.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by snapon_admin »

Could be. I'll try some things and see if I can reproduce an action that causes them and let you know. My first guesses were maybe config applies or viewing the host so I'll start there and see what I come up with.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by snapon_admin »

It's every time a config is applied, just did it twice and both times the comment was re-added.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: This host has been scheduled for fixed downtime comment

Post by abrist »

Or you could also have some automation (script, event handler, etc) that is submitting this comment. Can you check the event log for any submitted comments or downtime resembling this? We may be able to see where it originated from.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by snapon_admin »

Don't have any event handler's that I know of (and I'm the only Nagios admin) so I don't think that's it. It does happen every time I apply a config, though. I'll take a look at the long in a sec here and post it, troubleshooting a separate issue atm.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by snapon_admin »

This actually looks like it's happening with all persistent comments. This is the history tab after I applied a few comments. All of these times are when I applied a new config in CCM.
downtimewtf.png
Don't see anything in the event log that looks like it has anything to do with it.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: This host has been scheduled for fixed downtime comment

Post by lmiltchev »

I was able to recreate the issue and will be discussing it with Troy. I believe it is a bug, but will need to hear from Troy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by Box293 »

Nice spotting.

I have identified this behaviour occurs whenever the Nagios process starts. If there are scheduled downtimes in the future they get re-added to the nagios_commenthistory table in the nagios database, regardless if they already exist.

I have updated the History Tab component so it does not display these duplicate messages.

https://exchange.nagios.org/directory/A ... ab/details

If you have a minute please rate/review the History Tab component on the Nagios Exchange (if you've not already done this in the past)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
snapon_admin
Posts: 952
Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Contact:

Re: This host has been scheduled for fixed downtime comment

Post by snapon_admin »

Perfect, that looks great! Thanks a lot guys. Gave you a 5 star and a comment Troy, thanks for all your help!
Locked