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 #9236] PerfdataWriter: Better failure handling for file renames across file systems #2993
Comments
Updated by mfriedrich on 2015-05-08 08:08:23 +00:00
|
Updated by gbeutner on 2015-05-13 11:59:21 +00:00 Out of curiosity, why were you using tmpfs? |
Updated by cark on 2015-05-13 12:43:13 +00:00 gunnarbeutner wrote:
My Icinga 1 installation used one so i planned to use it for icinga2 also. To use ramdisk is written in "Optimize Icinga Performance" (https://wiki.icinga.org/display/howtos/Optimize+Icinga+Performance) |
Updated by mfriedrich on 2015-06-18 09:25:43 +00:00
|
Updated by jyoung15 on 2015-07-19 04:56:26 +00:00 I recently ran into this issue as well. The return value for the rename function in PerfdataWriter::RotateFile is not checked, so this error is silently ignored. Please add code to log a warning if rename returns an error (EXDEV errno 18 in this case). |
Updated by jdonahue on 2015-09-08 22:19:10 +00:00 jyoung15 wrote:
I also ran into this problem recently when moving the perfdata files to a different file system, +1 for adding a warning if the rename fails. |
Updated by jdonahue on 2015-09-08 23:34:23 +00:00 In addition, instead of |
Updated by mfriedrich on 2015-09-09 08:17:56 +00:00 Patches welcome :) |
Updated by jyoung15 on 2015-09-14 01:13:32 +00:00
Patch attached. |
Updated by mfriedrich on 2016-04-07 12:08:07 +00:00
Sorry for the late response. Thanks for the patch :) We'll also need a custom validator which checks the same device for _temp_path and_perfdata_path (stat). |
Updated by mfriedrich on 2016-04-07 12:08:51 +00:00
|
Updated by gbeutner on 2016-05-11 07:33:30 +00:00
Eh, forget about the custom validator. I'm going to merge the patch. :) |
Updated by Anonymous on 2016-05-11 07:33:51 +00:00
Applied in changeset 7dbd665. |
Updated by gbeutner on 2016-05-18 12:00:46 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9236
Created by cark on 2015-05-07 08:43:53 +00:00
Assignee: gbeutner
Status: Resolved (closed on 2016-05-11 07:33:51 +00:00)
Target Version: 2.4.8
Last Update: 2016-05-11 07:33:51 +00:00 (in Redmine)
If [service|host]_temp_path and [service|host]_perfdata_path are not on the same mountpoint, performance data willnot be rotated.
Run into this problem while converting 60K services to Icinga2 and used 2 different tmpfs mountpoints for it.
Attachments
Changesets
2016-05-11 07:29:32 +00:00 by (unknown) 7dbd665
2016-05-11 07:32:37 +00:00 by gbeutner f7e1e4e
2016-05-12 09:09:49 +00:00 by (unknown) 88806b0
2016-05-12 09:11:00 +00:00 by gbeutner 48ea880
Relations:
The text was updated successfully, but these errors were encountered: