Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #9773] Add log for missing EventCommand for command_endpoints #3196
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
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.
2015-07-31 14:04:03 +00:00 by (unknown) 0712a02
2015-08-12 08:33:44 +00:00 by (unknown) 1b3f377
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.
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 :)
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.