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 #10426] Icinga crashes with a segfault on receiving a lot of check results for nonexisting hosts/services #3526
Comments
Updated by vytenis on 2015-10-21 20:57:44 +00:00 BTW removing calls to BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot process passive host check result for non-existent host '" + arguments[0] + "'")); fixes the issue |
Updated by gbeutner on 2015-10-22 05:54:24 +00:00
What does the file you're passing to PROCESS_FILE look like? |
Updated by vytenis on 2015-10-22 10:49:34 +00:00 Most of the files look like this - all `PROCESS_SERVICE_CHECK_RESULT` with one chained `PROCESS_FILE` somewhere
|
Updated by mfriedrich on 2015-10-22 11:29:19 +00:00 So you are processing that file with PROCESS_FILE and then chain another PROCESS_FILE request inside? That's strange. |
Updated by vytenis on 2015-10-22 12:00:55 +00:00 That's how https://www.nsca-ng.org works - sends a single PROCESS_FILE command instead of thousands of them. |
Updated by mfriedrich on 2015-10-22 12:13:06 +00:00 Sure. But I've never seen that nesting PROCESS_FILE into files does work. Which is most likely the problem here. |
Updated by gbeutner on 2015-10-22 12:46:00 +00:00 Well, there's no inherent problem with nesting PROCESS_FILE calls, but I suspect you might be calling PROCESS_FILE for the same file recursively (i.e. file 'a' calls PROCESS_FILE for file 'a'). |
Updated by vytenis on 2015-10-22 13:14:40 +00:00 Same exact setup works with Nagios4 :-/ |
Updated by mfriedrich on 2015-10-22 13:21:37 +00:00 vytenis wrote:
Whats the exact path for that file being processed? |
Updated by vytenis on 2015-10-22 13:30:09 +00:00 dnsmichi wrote:
|
Updated by vytenis on 2015-10-27 17:08:43 +00:00
We fixed it in our setup with the attached patch. |
Updated by mfriedrich on 2015-11-25 09:42:27 +00:00
|
Updated by mfriedrich on 2016-02-24 22:26:57 +00:00
Sorry for the delay, and thanks for the patch :) |
Updated by vytenis on 2016-02-24 22:27:10 +00:00
Applied in changeset 6729679. |
Updated by gbeutner on 2016-04-20 08:14:38 +00:00
|
Updated by gbeutner on 2016-04-20 16:35:39 +00:00
|
Updated by gbeutner on 2016-04-21 07:46:57 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10426
Created by vytenis on 2015-10-21 18:31:32 +00:00
Assignee: vytenis
Status: Resolved (closed on 2016-02-24 22:27:10 +00:00)
Target Version: 2.4.8
Last Update: 2016-04-21 07:46:57 +00:00 (in Redmine)
Large setup, ~500k services, check results are fed via nsca-ng/external command pipe. On real load with a lot of check results via external command pipe and some of them (<10%) are not actually registered in Icinga2, it crashes a few seconds after startup:
http://hastebin.com/yivajejape.sm
Running icinga2 git master @ from oct 16 / commit 21a2986
Attachments
Changesets
2016-02-24 22:25:22 +00:00 by vytenis 6729679
2016-02-24 22:25:59 +00:00 by mfriedrich 8e0cc70
2016-05-12 09:08:19 +00:00 by vytenis 9f3a6b9
2016-05-12 09:08:19 +00:00 by mfriedrich 7175174
The text was updated successfully, but these errors were encountered: