Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Centcore is moving temporary files in an infinite loop #3814

Closed
ddu17 opened this issue Oct 6, 2015 · 3 comments
Closed

Centcore is moving temporary files in an infinite loop #3814

ddu17 opened this issue Oct 6, 2015 · 3 comments

Comments

@ddu17
Copy link
Contributor

ddu17 commented Oct 6, 2015

Hello,

I'm using Centreon 2.6.3. I developed a script in order to store some external commands into the centcore pipe.

My commands are stored in a file located near /var/lib/centreon/centcore/.

When centcore is working with my file, it renames the file like by adding "_read" in their name. This process is done in a loop.

Please note that my external commands are working fine, but this behaviour sounds like a bug.

test-centcore

Best regards.

@julienmathis julienmathis added this to the Centreon 2.6.4 milestone Oct 6, 2015
@julienmathis
Copy link
Contributor

Hello,

Which OS ?

Can we have the centcore logs ? Because we try this on our plateform and we can't reproduce.

Do you have specific security configuration on your system ? It seems that centcore can remove the file. It's not a normal behavior because he can rename it...

Thanks

julienmathis added a commit that referenced this issue Oct 7, 2015
@ddu17
Copy link
Contributor Author

ddu17 commented Oct 7, 2015

Hello,

I'm using CES 3.

Please find below last lines of my centcore log file.

2015-10-07 10:50:34 - Cannot move /var/lib/centreon/centcore/.test.read.swp_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read to /var/lib/centreon/centcore/.test.read.swp_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read_read

Best regards.

julienmathis added a commit that referenced this issue Oct 7, 2015
@julienmathis
Copy link
Contributor

Hello,

This bug is due to the fact that you use vi to write this command file. Please prefer using a temp directory for writing your command file and after that move this file into /var/lib/centreon/centcore directory. Here, vi sets specific permission on the file, and so centcore can't remove it.

Centcore have to read all files created in this directory, that's why he read vi temp file.

For avoiding this problem, I know remove the read of .* file and *_read files. It should fix all your problems.

Regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants