Skip to content
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

win32: 2 values in internal_options.conf ignored #976

Closed
th0u opened this issue Oct 21, 2016 · 1 comment
Closed

win32: 2 values in internal_options.conf ignored #976

th0u opened this issue Oct 21, 2016 · 1 comment

Comments

@th0u
Copy link

th0u commented Oct 21, 2016

Both values are read in logcollector/main.c but not in win32/win_agent.c

loop_timeout = getDefine_Int("logcollector",  "loop_timeout", 1, 120);
open_file_attempts = getDefine_Int("logcollector", "open_attempts", 2, 998);

loop_timeout is imho not critical. On win32 it is not critical because
sleep(loop_timeout +2); is used.

open_file_attempts with value "0" leads imho to unnecessary logfile rereads and should be fixed.

@th0u
Copy link
Author

th0u commented Oct 24, 2016

patch.diff.txt

ddpbsd added a commit to ddpbsd/ossec-hids that referenced this issue Oct 24, 2016
loop_timeout and open_file_attempts are read by logcollector/main.c
 but not in win32/win_agent.c. This could be an issue for win32 agents.
@ddpbsd ddpbsd closed this as completed Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants