New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #9773] Add log for missing EventCommand for command_endpoints #3196
Comments
Updated by emptywee on 2015-07-30 14:15:24 +00:00 It seems like this is not fired when command_endpoint is set to a remote host. When I brought down crond service on the checker itself, eventcommand was executed. Checker debug.log:
Remote client:
It seems like the remote client receives the message, but ignores it for some reason. I am going to add more debug, maybe I'll find a clue. |
Updated by emptywee on 2015-07-30 15:20:35 +00:00 Yeah, I think I figured it out. Remote client was looking for EventCommand 'cmd_service_restart':
So I have to register them on each remote client. Probably not a bug. Sorry, guys :) |
Updated by emptywee on 2015-07-30 15:26:46 +00:00 Yes, that was it. Please, add this do debug log with something meaningful? This would help a lot and save time for somebody like me in the future :) lib/icinga/apievents.cpp:
|
Updated by mfriedrich on 2015-07-31 13:33:51 +00:00
I'll add such a log message as warning - though you'll only see that on the remove instance. The check command is sent back, maybe we'll come up with a better approach similar to #9749. |
Updated by mfriedrich on 2015-07-31 13:34:01 +00:00
|
Updated by Anonymous on 2015-07-31 14:05:03 +00:00
Applied in changeset 0712a02. |
Updated by gbeutner on 2015-08-12 08:34:00 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9773
Created by emptywee on 2015-07-29 20:20:33 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2015-07-31 14:05:03 +00:00)
Target Version: 2.3.9
Last Update: 2015-08-12 08:34:00 +00:00 (in Redmine)
Hello.
Created a simple eventcommand:
Created a service:
Defined a host with the following template:
Brought down crond on the remote host and seeing this on the checker node:
EventCommand object on the checker:
Apparently, no command is being really executed anywhere. I even tried the example from the docs with "by_ssh" event. Same result. Not sure how to debug it further. This is really critical when there's no ability to re-act for events.
I hope I am not missing anything myself here.
Changesets
2015-07-31 14:04:03 +00:00 by (unknown) 0712a02
2015-08-12 08:33:44 +00:00 by (unknown) 1b3f377
Relations:
The text was updated successfully, but these errors were encountered: