Respond URL - Bad Ticket

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: Respond URL - Bad Ticket

Post by lmiltchev »

I am not able to recreate the issue, however I sent a note to our devs so that they can take a look at this.
Or is rr just not used by that many people? Hmmmm
I am not sure how much the respond URL is used, but we don't have many "bad ticket" issues reported from other users. I've seen only 1 or 2.
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Respond URL - Bad Ticket

Post by scottwilkerson »

When this happens, is it always when you getting the -- in the URL in the notification?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Respond URL - Bad Ticket

Post by BanditBBS »

scottwilkerson wrote:When this happens, is it always when you getting the -- in the URL in the notification?
Yes, and I am 99% sure its always during an apply configuration or shortly after when the stuff is coming back up. I have my retries set to 12 now with a 5 second retry in the rr.php file. It's really lowered the number of bad ticket issues.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Respond URL - Bad Ticket

Post by scottwilkerson »

You are correct... I have found the cause, and placed a fix in the attached file. Place in

Code: Select all

/usr/local/nagiosxi/html/includes/utils-notifications.inc.php
utils-notifications.inc.zip
The solution was to retry getting the object_id 5 time separated by 1 second in case ndo was in the middle of resetting the object id's, (e.g. during an apply configuration) if the object ID is still -1, we will use the standard URL instead of the rapid response URL in the notification message. So you will actually still get a usable URL in the message.

This fix will be included in XI 5R1.0
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Respond URL - Bad Ticket

Post by BanditBBS »

Cool Scott, thanks, I'll put this into production and test here.

Can you clarify what you meant by "standard url" in the cased when it still fails after the retries? Will it be a url directly to the problem host and/or service just without the ticket?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Respond URL - Bad Ticket

Post by ssax »

Yes, that is correct.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Respond URL - Bad Ticket

Post by BanditBBS »

Thanks! I think this can be closed for the second and hopefully final time :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Respond URL - Bad Ticket

Post by abrist »

I just tested it here and it seems to work. PM me if this issue recurs and I will reopen the thread.
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.
Locked