Rapid Response - Acknowledge Error in nagios.log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Rapid Response - Acknowledge Error in nagios.log

Post by brdr »

Hi,

We use XI 2014R2.7

We have users that receive notifications via a distribution list configured in outlook. When users receive notification they acknowledge the alert by using the Rapid Response link that is inside the email. When users acknowledge, Nagios will write this failure into the nagios.log.

[1444672744] Error: External command failed -> ACKNOWLEDGE_SVC_PROBLEM;bed-600-54;Memory Usage;1;1;1;it-remedy;
[1444672744] External command error: Command failed

it-remedy is a user/contact configured in nagios. User Jane Doe accepts via Rapid Response and has permission to see host bed-600-54.

Is there a reason why the external command fails?

Thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Rapid Response - Acknowledge Error in nagios.log

Post by lmiltchev »

Can you show us the "Memory Usage" service definition? Also, go to Admin->Manage Users->it-remedy->Edit and show a screenshot of the "Security Settings" section.
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Rapid Response - Acknowledge Error in nagios.log

Post by brdr »

please find attached service def and screen shot. Thx.
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: Rapid Response - Acknowledge Error in nagios.log

Post by lmiltchev »

Is "it-remedy" set as a monitoring contact on "Memory Usage"? I don't see the contacts directive, i.e:

Code: Select all

contacts			it-remedy
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Rapid Response - Acknowledge Error in nagios.log

Post by brdr »

We have it-remedy defined are part of the remedy group, snippet from objects.cache below. I would expect (could be a bad assumption :-)) that when the notification went out anyone of the members would be able to successfully reply via Rapid Response without issue. Are you saying that there needs to be an explicit 'contacts it-remedy' in order for this to work?

define contactgroup {
contactgroup_name remedy_cg
alias Remedy Contact Group
members skourt,jdoe,it-remedy
}
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Rapid Response - Acknowledge Error in nagios.log

Post by brdr »

I think I figured it out. There isn't an issue with contact configuration.

The issue is when the Rapid Response URL link is used a comment MUST be accompanied when acknowledging the alert. If there is no comment it will fail. I did a test from the command line using the external command ACKNOWLEDGE_SVC_PROBLEM on our Nagios server.

[1444831257] GLOBAL SERVICE EVENT HANDLER: bed-950-41;Memory Usage;WARNING;SOFT;13;xi_service_event_handler
[1444831364] Error: External command failed -> ACKNOWLEDGE_SVC_PROBLEM;bed-950-41;Memory Usage;1;1;1;it-sharepoint; <------------------------ NO COMMENT
[1444831364] External command error: Command failed
[1444831438] SERVICE NOTIFICATION: it-windows;bed-950-41;Memory Usage;ACKNOWLEDGEMENT (WARNING);xi_service_notification_handler;WARNING - [Triggered by _MemUsed%>85] - Physical Memory: Total: 18GB - Used: 15.659GB (87%) - Free: 2.341GB (13%);it-sharepoint;Test-Don-troubleshooting
[1444831438] SERVICE NOTIFICATION: it-sharepoint;bed-950-41;Memory Usage;ACKNOWLEDGEMENT (WARNING);xi_service_notification_handler;WARNING - [Triggered by _MemUsed%>85] - Physical Memory: Total: 18GB - Used: 15.659GB (87%) - Free: 2.341GB (13%);it-sharepoint;Test-Don-troubleshooting

Question. Is there any adjustment that can be made somehow so the command doesn't fail when a comment is not provided?

Thx
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Rapid Response - Acknowledge Error in nagios.log

Post by tmcdonald »

This would need to be fixed in Core most likely, otherwise we could try and include a "dummy" comment if one is not given by the user. A bug report can be filed here:

https://github.com/NagiosEnterprises/na ... issues/new

or I can make one on your behalf. Let me know!
Former Nagios employee
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Rapid Response - Acknowledge Error in nagios.log

Post by brdr »

If you could file one on my behalf that would be great. Thx. Please close.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Rapid Response - Acknowledge Error in nagios.log

Post by tmcdonald »

Filed for Core here:

https://github.com/NagiosEnterprises/na ... /issues/82

so I'll be closing this thread now!
Former Nagios employee
Locked