R3.html

Report generated on 03-Feb-2022 at 16:07:32 by pytest-html v2.0.1

Environment

Packages {'pytest': '6.2.2', 'py': '1.10.0', 'pluggy': '0.13.1'}
Platform Linux-5.13.0-27-generic-x86_64-with-glibc2.29
Plugins {'metadata': '1.11.0', 'html': '2.0.1', 'testinfra': '5.0.0'}
Python 3.8.10

Summary

6 tests ran in 414.33 seconds.

6 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-add-wazuh-agent1] 57.19
------------------------------Captured stderr call------------------------------
2022-02-03 16:00:56,997 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:00:57,000 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:00:57,000 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:00:57,003 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:00:57,005 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:00:57,006 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:00:57,006 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:00:57,009 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:00:59,067 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:00:59,242 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:01:00,014 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:01:00,015 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:01:00,017 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 19:50:33 wazuh-syscheckd[11300] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914233,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"e8e94bbb0d223229bc86b24b01546b5813065c0f"}} 2022-02-03 16:01:00,017 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:00:47 wazuh-db[7977] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/testdir1.txt","version":2,"timestamp":1643914847,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914844,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"03fd2d24a2c7565ffff0f78e291866e069ada940"}} 2022-02-03 16:01:29,117 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:29,120 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:01:29,120 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:29,123 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:01:31,154 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:01:32,125 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:01:32,126 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:01:32,127 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:01:25 wazuh-syscheckd[12407] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwis_7nyc -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.864360', 'end': '2022-02-03 20:00:41.342967', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:00:40.478607', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxdwd5s47 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.724449', 'end': '2022-02-03 20:00:44.550367', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:00:43.825918', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpn4911p1d -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 19:50:33 wazuh-syscheckd[11300] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914233,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"e8e94bbb0d223229bc86b24b01546b5813065c0f"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:00:47 wazuh-db[7977] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/testdir1.txt","version":2,"timestamp":1643914847,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914844,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"03fd2d24a2c7565ffff0f78e291866e069ada940"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpi3fhihhl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914861.2595544-98484-181600675406102/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914861.2595544-98484-181600675406102/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp72rl39o2 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914866.4381413-98876-62374917952227/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914866.4381413-98876-62374917952227/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp2cr4dp8u -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nKilling wazuh-modulesd... \nKilling wazuh-logcollector... \nKilling wazuh-syscheckd... \nKilling wazuh-agentd... \nKilling wazuh-execd... \nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:01.525099', 'end': '2022-02-03 20:01:14.660844', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:13.135745', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-modulesd... \n' 'Killing wazuh-logcollector... \n' 'Killing wazuh-syscheckd... \n' 'Killing wazuh-agentd... \n' 'Killing wazuh-execd... \n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-modulesd... ', 'Killing wazuh-logcollector... ', 'Killing wazuh-syscheckd... ', 'Killing wazuh-agentd... ', 'Killing wazuh-execd... ', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpgs7ob1l6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:01.005381', 'end': '2022-02-03 20:01:18.168720', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:17.163339', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpj7b8u05z -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-agent1", exit_status=0, stdout=b"wazuh-agent1 | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/02/03 20:01:21 wazuh-syscheckd[12371] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:01:23 wazuh-syscheckd[12407] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:01:23 rootcheck[12407] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:07.897806', 'end': '2022-02-03 20:01:28.788609', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:20.890803', 'stderr': '2022/02/03 20:01:21 wazuh-syscheckd[12371] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:01:23 rootcheck[12407] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:01:21 wazuh-syscheckd[12371] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:01:21 wazuh-syscheckd[12371] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:01:21 wazuh-syscheckd[12371] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:01:21 wazuh-syscheckd[12371] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:01:23 wazuh-syscheckd[12407] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:01:23 wazuh-syscheckd[12407] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:01:23 wazuh-syscheckd[12407] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:01:23 wazuh-syscheckd[12407] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:01:23 rootcheck[12407] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:01:25 wazuh-syscheckd[12407] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpd7v55w7g -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.610966', 'end': '2022-02-03 20:01:35.098474', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:34.487508', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-add-wazuh-manager] 73.04
------------------------------Captured stderr call------------------------------
2022-02-03 16:01:54,135 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:54,138 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:01:54,138 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:54,141 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:54,141 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:01:54,142 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:01:54,144 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:01:54,147 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:01:56,193 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:01:56,193 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:01:57,150 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:01:57,151 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:01:57,152 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:01:28 wazuh-db[7977] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/testdir1.txt","timestamp":1643914884,"version":2,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914878,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"49110f5818848fa1c914c6d71ca2f400031c597b"}} 2022-02-03 16:01:57,153 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:01:25 wazuh-syscheckd[12407] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914885,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"23a0c7e4542fdd98db1ccbd6e494454b0fd9b1b0"}} 2022-02-03 16:02:42,099 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:02:42,102 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:02:42,114 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:02:42,115 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:02:44,161 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:02:45,109 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:02:45,109 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:02:45,110 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:02:35 wazuh-syscheckd[9042] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3kcwyny2 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.658051', 'end': '2022-02-03 20:01:38.379169', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:37.721118', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpcc408dhl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.753334', 'end': '2022-02-03 20:01:41.665251', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:01:40.911917', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmppa0ld6sk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:01:28 wazuh-db[7977] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/testdir1.txt","timestamp":1643914884,"version":2,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914878,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"49110f5818848fa1c914c6d71ca2f400031c597b"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:01:25 wazuh-syscheckd[12407] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914885,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"23a0c7e4542fdd98db1ccbd6e494454b0fd9b1b0"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpn_nh2d8d -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914918.4689028-102156-68246301502531/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914918.4689028-102156-68246301502531/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpff2qlwr5 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914923.489905-102540-46522820883392/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914923.489905-102540-46522820883392/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmponri_8fy -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-manager", exit_status=0, stdout=b'wazuh-manager | CHANGED | rc=0 >>\nKilling wazuh-clusterd...\nKilling wazuh-modulesd...\nKilling wazuh-monitord...\nKilling wazuh-logcollector...\nKilling wazuh-remoted...\nKilling wazuh-syscheckd...\nKilling wazuh-analysisd...\nwazuh-maild not running...\nKilling wazuh-execd...\nKilling wazuh-db...\nKilling wazuh-authd...\nwazuh-agentlessd not running...\nwazuh-integratord not running...\nwazuh-dbd not running...\nwazuh-csyslogd not running...\nKilling wazuh-apid...\nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:03.770690', 'end': '2022-02-03 20:02:13.361559', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:09.590869', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-clusterd...\n' 'Killing wazuh-modulesd...\n' 'Killing wazuh-monitord...\n' 'Killing wazuh-logcollector...\n' 'Killing wazuh-remoted...\n' 'Killing wazuh-syscheckd...\n' 'Killing wazuh-analysisd...\n' 'wazuh-maild not running...\n' 'Killing wazuh-execd...\n' 'Killing wazuh-db...\n' 'Killing wazuh-authd...\n' 'wazuh-agentlessd not running...\n' 'wazuh-integratord not running...\n' 'wazuh-dbd not running...\n' 'wazuh-csyslogd not running...\n' 'Killing wazuh-apid...\n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-clusterd...', 'Killing wazuh-modulesd...', 'Killing wazuh-monitord...', 'Killing wazuh-logcollector...', 'Killing wazuh-remoted...', 'Killing wazuh-syscheckd...', 'Killing wazuh-analysisd...', 'wazuh-maild not running...', 'Killing wazuh-execd...', 'Killing wazuh-db...', 'Killing wazuh-authd...', 'wazuh-agentlessd not running...', 'wazuh-integratord not running...', 'wazuh-dbd not running...', 'wazuh-csyslogd not running...', 'Killing wazuh-apid...', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsmw5xylj -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.785544', 'end': '2022-02-03 20:02:16.656303', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:15.870759', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpb6xu2in8 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-manager", exit_status=0, stdout=b"wazuh-manager | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-apid...\nStarted wazuh-csyslogd...\nStarted wazuh-dbd...\nStarted wazuh-integratord...\nStarted wazuh-agentlessd...\nStarted wazuh-authd...\nStarted wazuh-db...\nStarted wazuh-execd...\nStarted wazuh-analysisd...\nStarted wazuh-syscheckd...\nStarted wazuh-remoted...\nStarted wazuh-logcollector...\nStarted wazuh-monitord...\nStarted wazuh-modulesd...\nStarted wazuh-clusterd...\nCompleted.2022/02/03 20:02:25 wazuh-db[8915] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:02:25 wazuh-db[8915] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:02:26 wazuh-syscheckd[8919] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:02:26 wazuh-syscheckd[8919] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:02:26 wazuh-syscheckd[8919] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:02:33 wazuh-integratord: INFO: Remote integrations not configured. Clean exit.\n2022/02/03 20:02:33 wazuh-db[8996] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:02:33 wazuh-db[8996] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:02:35 wazuh-syscheckd[9042] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:02:35 wazuh-syscheckd[9042] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:02:35 wazuh-syscheckd[9042] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:118 at main(): INFO: (6678): No directory provided for syscheck to monitor.\n2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:136 at main(): INFO: (6001): File integrity monitoring disabled.\n2022/02/03 20:02:35 rootcheck[9042] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:22.501548', 'end': '2022-02-03 20:02:41.746774', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:19.245226', 'stderr': '2022/02/03 20:02:25 wazuh-db[8915] debug_op.c:70 at _log(): DEBUG: ' 'Logging module auto-initialized\n' '2022/02/03 20:02:25 wazuh-db[8915] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:02:26 wazuh-syscheckd[8919] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/02/03 20:02:26 wazuh-syscheckd[8919] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:02:26 wazuh-syscheckd[8919] syscheck-config.c:122 at ' 'organize_syscheck_dirs(): DEBUG: No directory entries to organize ' 'in syscheck configuration.\n' '2022/02/03 20:02:33 wazuh-integratord: INFO: Remote integrations ' 'not configured. Clean exit.\n' '2022/02/03 20:02:33 wazuh-db[8996] debug_op.c:70 at _log(): DEBUG: ' 'Logging module auto-initialized\n' '2022/02/03 20:02:33 wazuh-db[8996] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:02:35 wazuh-syscheckd[9042] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/02/03 20:02:35 wazuh-syscheckd[9042] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:02:35 wazuh-syscheckd[9042] syscheck-config.c:122 at ' 'organize_syscheck_dirs(): DEBUG: No directory entries to organize ' 'in syscheck configuration.\n' '2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:118 at main(): ' 'INFO: (6678): No directory provided for syscheck to monitor.\n' '2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:136 at main(): ' 'INFO: (6001): File integrity monitoring disabled.\n' '2022/02/03 20:02:35 rootcheck[9042] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:02:25 wazuh-db[8915] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized', '2022/02/03 20:02:25 wazuh-db[8915] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:02:26 wazuh-syscheckd[8919] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:02:26 wazuh-syscheckd[8919] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:02:26 wazuh-syscheckd[8919] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:02:33 wazuh-integratord: INFO: Remote ' 'integrations not configured. Clean exit.', '2022/02/03 20:02:33 wazuh-db[8996] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized', '2022/02/03 20:02:33 wazuh-db[8996] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:02:35 wazuh-syscheckd[9042] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:02:35 wazuh-syscheckd[9042] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:02:35 wazuh-syscheckd[9042] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:118 at ' 'main(): INFO: (6678): No directory provided for syscheck to ' 'monitor.', '2022/02/03 20:02:35 wazuh-syscheckd[9042] main.c:136 at ' 'main(): INFO: (6001): File integrity monitoring disabled.', '2022/02/03 20:02:35 rootcheck[9042] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-apid...\n' 'Started wazuh-csyslogd...\n' 'Started wazuh-dbd...\n' 'Started wazuh-integratord...\n' 'Started wazuh-agentlessd...\n' 'Started wazuh-authd...\n' 'Started wazuh-db...\n' 'Started wazuh-execd...\n' 'Started wazuh-analysisd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-remoted...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-monitord...\n' 'Started wazuh-modulesd...\n' 'Started wazuh-clusterd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-apid...', 'Started wazuh-csyslogd...', 'Started wazuh-dbd...', 'Started wazuh-integratord...', 'Started wazuh-agentlessd...', 'Started wazuh-authd...', 'Started wazuh-db...', 'Started wazuh-execd...', 'Started wazuh-analysisd...', 'Started wazuh-syscheckd...', 'Started wazuh-remoted...', 'Started wazuh-logcollector...', 'Started wazuh-monitord...', 'Started wazuh-modulesd...', 'Started wazuh-clusterd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:02:35 wazuh-syscheckd[9042] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp490x3hhs -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.671914', 'end': '2022-02-03 20:02:48.132412', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:47.460498', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-modify-wazuh-agent1] 57.67
------------------------------Captured stderr call------------------------------
2022-02-03 16:03:07,556 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:07,558 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:07,561 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:03:07,562 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:07,563 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:03:07,565 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:07,566 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:03:07,569 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:03:09,595 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:03:09,633 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:03:10,574 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:03:10,574 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:03:10,576 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:03:04 wazuh-syscheckd[13543] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914984,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"da2b3022185de431e190b42aa55a9a2a7356fc67"}} 2022-02-03 16:03:10,577 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:02:42 wazuh-db[8996] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/testdir1.txt","version":2,"timestamp":1643914962,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914936,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"633ba07e326e9334f6e5c8493ed6e1dbe44cea2f"}} 2022-02-03 16:03:40,392 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:40,395 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:03:40,395 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:03:40,398 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:03:41,924 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:03:42,901 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:03:42,901 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:03:42,902 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:03:37 wazuh-syscheckd[14070] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpy4j6wtrb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.819062', 'end': '2022-02-03 20:02:51.612619', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:50.793557', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbeqmg8q5 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:01.832878', 'end': '2022-02-03 20:02:56.127069', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:02:54.294191', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpycutgwm_ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:03:04 wazuh-syscheckd[13543] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643914984,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"da2b3022185de431e190b42aa55a9a2a7356fc67"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:02:42 wazuh-db[8996] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/testdir1.txt","version":2,"timestamp":1643914962,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643914936,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"633ba07e326e9334f6e5c8493ed6e1dbe44cea2f"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp7yfhhqy4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914991.9192126-106013-234285623904618/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914991.9192126-106013-234285623904618/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmph5lwj61p -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643914997.1757321-106401-221852901178107/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643914997.1757321-106401-221852901178107/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpjr3i0__v -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nKilling wazuh-modulesd... \nKilling wazuh-logcollector... \nKilling wazuh-syscheckd... \nKilling wazuh-agentd... \nKilling wazuh-execd... \nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:01.315710', 'end': '2022-02-03 20:03:24.766517', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:03:23.450807', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-modulesd... \n' 'Killing wazuh-logcollector... \n' 'Killing wazuh-syscheckd... \n' 'Killing wazuh-agentd... \n' 'Killing wazuh-execd... \n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-modulesd... ', 'Killing wazuh-logcollector... ', 'Killing wazuh-syscheckd... ', 'Killing wazuh-agentd... ', 'Killing wazuh-execd... ', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpulecum4m -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args 'src=/tmp/tmpjh2qcwvp dest=testdir1 owner=wazuh group=wazuh mode=0775' wazuh-agent1", exit_status=2, stdout=b'wazuh-agent1 | FAILED! => {\n "changed": false,\n "checksum": "9eab19985b11b15f91f936e463ea74f1dfe88e32",\n "gid": 0,\n "group": "root",\n "mode": "0644",\n "msg": "chown failed: failed to look up user wazuh",\n "owner": "root",\n "path": "./testdir1/tmpjh2qcwvp",\n "size": 8,\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', 'src=/tmp/tmpjh2qcwvp dest=testdir1 owner=wazuh group=wazuh mode=0775', {'check': False, 'become': False}): {'changed': False, 'checksum': '9eab19985b11b15f91f936e463ea74f1dfe88e32', 'gid': 0, 'group': 'root', 'mode': '0644', 'msg': 'chown failed: failed to look up user wazuh', 'owner': 'root', 'path': './testdir1/tmpjh2qcwvp', 'size': 8, 'state': 'file', 'uid': 0} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbjf3_vmh -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-agent1", exit_status=0, stdout=b"wazuh-agent1 | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/02/03 20:03:33 wazuh-syscheckd[14034] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:03:36 wazuh-syscheckd[14070] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:03:36 rootcheck[14070] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:06.925434', 'end': '2022-02-03 20:03:40.085110', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:03:33.159676', 'stderr': '2022/02/03 20:03:33 wazuh-syscheckd[14034] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:03:36 rootcheck[14070] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:03:33 wazuh-syscheckd[14034] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:03:33 wazuh-syscheckd[14034] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:03:33 wazuh-syscheckd[14034] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:03:33 wazuh-syscheckd[14034] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:03:36 wazuh-syscheckd[14070] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:03:36 wazuh-syscheckd[14070] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:03:36 wazuh-syscheckd[14070] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:03:36 wazuh-syscheckd[14070] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:03:36 rootcheck[14070] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:03:37 wazuh-syscheckd[14070] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpt24q_le8 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.622181', 'end': '2022-02-03 20:03:45.805795', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:03:45.183614', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-modify-wazuh-manager] 76.33
------------------------------Captured stderr call------------------------------
2022-02-03 16:04:04,329 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:04,332 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:04:04,332 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:04,336 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:04,336 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:04:04,339 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:04:04,339 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:04,343 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:04:06,386 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:04:06,386 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:04:07,347 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:04:07,347 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:04:07,349 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:03:40 wazuh-db[8996] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/tmpjh2qcwvp","timestamp":1643915016,"version":2,"attributes":{"type":"file","size":8,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091198,"mtime":1643915009,"hash_md5":"e770e54c4c42d3307c141c0c8948992a","hash_sha1":"9eab19985b11b15f91f936e463ea74f1dfe88e32","hash_sha256":"b1893f8d4b1596c20d6f83a784b2b0468c22fb83ce4ff2033ff86a37865d41d8","checksum":"67b6866c857715f6e8c3d17700aeb40334c7daf2"}} 2022-02-03 16:04:07,349 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:03:37 wazuh-syscheckd[14070] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915017,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"baffb246b7780bb46cec4541579f12c57f2f5f46"}} 2022-02-03 16:04:56,145 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:56,147 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:04:56,148 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:04:56,150 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:04:58,167 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:04:59,157 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:04:59,157 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:04:59,159 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:04:49 wazuh-syscheckd[10000] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsfhnn8wd -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.785064', 'end': '2022-02-03 20:03:49.144628', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:03:48.359564', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpowclgqw9 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.774070', 'end': '2022-02-03 20:03:52.498943', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:03:51.724873', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpn3l6nrxl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:03:40 wazuh-db[8996] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/tmpjh2qcwvp","timestamp":1643915016,"version":2,"attributes":{"type":"file","size":8,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091198,"mtime":1643915009,"hash_md5":"e770e54c4c42d3307c141c0c8948992a","hash_sha1":"9eab19985b11b15f91f936e463ea74f1dfe88e32","hash_sha256":"b1893f8d4b1596c20d6f83a784b2b0468c22fb83ce4ff2033ff86a37865d41d8","checksum":"67b6866c857715f6e8c3d17700aeb40334c7daf2"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:03:37 wazuh-syscheckd[14070] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915017,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"baffb246b7780bb46cec4541579f12c57f2f5f46"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp1pwgedbg -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915048.674492-109628-114408613369848/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915048.674492-109628-114408613369848/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpyxn7s2vk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915053.93188-110015-142290731289446/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915053.93188-110015-142290731289446/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmptmgh6c69 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-manager", exit_status=0, stdout=b'wazuh-manager | CHANGED | rc=0 >>\nKilling wazuh-clusterd...\nKilling wazuh-modulesd...\nKilling wazuh-monitord...\nKilling wazuh-logcollector...\nKilling wazuh-remoted...\nKilling wazuh-syscheckd...\nKilling wazuh-analysisd...\nwazuh-maild not running...\nKilling wazuh-execd...\nKilling wazuh-db...\nKilling wazuh-authd...\nwazuh-agentlessd not running...\nwazuh-integratord not running...\nwazuh-dbd not running...\nwazuh-csyslogd not running...\nKilling wazuh-apid...\nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:03.345519', 'end': '2022-02-03 20:04:23.510646', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:04:20.165127', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-clusterd...\n' 'Killing wazuh-modulesd...\n' 'Killing wazuh-monitord...\n' 'Killing wazuh-logcollector...\n' 'Killing wazuh-remoted...\n' 'Killing wazuh-syscheckd...\n' 'Killing wazuh-analysisd...\n' 'wazuh-maild not running...\n' 'Killing wazuh-execd...\n' 'Killing wazuh-db...\n' 'Killing wazuh-authd...\n' 'wazuh-agentlessd not running...\n' 'wazuh-integratord not running...\n' 'wazuh-dbd not running...\n' 'wazuh-csyslogd not running...\n' 'Killing wazuh-apid...\n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-clusterd...', 'Killing wazuh-modulesd...', 'Killing wazuh-monitord...', 'Killing wazuh-logcollector...', 'Killing wazuh-remoted...', 'Killing wazuh-syscheckd...', 'Killing wazuh-analysisd...', 'wazuh-maild not running...', 'Killing wazuh-execd...', 'Killing wazuh-db...', 'Killing wazuh-authd...', 'wazuh-agentlessd not running...', 'wazuh-integratord not running...', 'wazuh-dbd not running...', 'wazuh-csyslogd not running...', 'Killing wazuh-apid...', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpzzpg5qf4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args 'src=/tmp/tmpobpl_unb dest=testdir1 owner=wazuh group=wazuh mode=0775' wazuh-agent1", exit_status=2, stdout=b'wazuh-agent1 | FAILED! => {\n "changed": false,\n "checksum": "9eab19985b11b15f91f936e463ea74f1dfe88e32",\n "gid": 0,\n "group": "root",\n "mode": "0644",\n "msg": "chown failed: failed to look up user wazuh",\n "owner": "root",\n "path": "./testdir1/tmpobpl_unb",\n "size": 8,\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', 'src=/tmp/tmpobpl_unb dest=testdir1 owner=wazuh group=wazuh mode=0775', {'check': False, 'become': False}): {'changed': False, 'checksum': '9eab19985b11b15f91f936e463ea74f1dfe88e32', 'gid': 0, 'group': 'root', 'mode': '0644', 'msg': 'chown failed: failed to look up user wazuh', 'owner': 'root', 'path': './testdir1/tmpobpl_unb', 'size': 8, 'state': 'file', 'uid': 0} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpgl0gdas3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-manager", exit_status=0, stdout=b"wazuh-manager | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-apid...\nStarted wazuh-csyslogd...\nStarted wazuh-dbd...\nStarted wazuh-integratord...\nStarted wazuh-agentlessd...\nStarted wazuh-authd...\nStarted wazuh-db...\nStarted wazuh-execd...\nStarted wazuh-analysisd...\nStarted wazuh-syscheckd...\nStarted wazuh-remoted...\nStarted wazuh-logcollector...\nStarted wazuh-monitord...\nStarted wazuh-modulesd...\nStarted wazuh-clusterd...\nCompleted.2022/02/03 20:04:39 wazuh-db[9873] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:04:39 wazuh-db[9873] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:04:39 wazuh-syscheckd[9877] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:04:39 wazuh-syscheckd[9877] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:04:39 wazuh-syscheckd[9877] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:04:47 wazuh-integratord: INFO: Remote integrations not configured. Clean exit.\n2022/02/03 20:04:47 wazuh-db[9954] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:04:47 wazuh-db[9954] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:04:49 wazuh-syscheckd[10000] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:04:49 wazuh-syscheckd[10000] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:04:49 wazuh-syscheckd[10000] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:118 at main(): INFO: (6678): No directory provided for syscheck to monitor.\n2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:136 at main(): INFO: (6001): File integrity monitoring disabled.\n2022/02/03 20:04:49 rootcheck[10000] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:23.581936', 'end': '2022-02-03 20:04:55.823096', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:04:32.241160', 'stderr': '2022/02/03 20:04:39 wazuh-db[9873] debug_op.c:70 at _log(): DEBUG: ' 'Logging module auto-initialized\n' '2022/02/03 20:04:39 wazuh-db[9873] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:04:39 wazuh-syscheckd[9877] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/02/03 20:04:39 wazuh-syscheckd[9877] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:04:39 wazuh-syscheckd[9877] syscheck-config.c:122 at ' 'organize_syscheck_dirs(): DEBUG: No directory entries to organize ' 'in syscheck configuration.\n' '2022/02/03 20:04:47 wazuh-integratord: INFO: Remote integrations ' 'not configured. Clean exit.\n' '2022/02/03 20:04:47 wazuh-db[9954] debug_op.c:70 at _log(): DEBUG: ' 'Logging module auto-initialized\n' '2022/02/03 20:04:47 wazuh-db[9954] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:04:49 wazuh-syscheckd[10000] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:04:49 wazuh-syscheckd[10000] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:04:49 wazuh-syscheckd[10000] syscheck-config.c:122 ' 'at organize_syscheck_dirs(): DEBUG: No directory entries to ' 'organize in syscheck configuration.\n' '2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:118 at main(): ' 'INFO: (6678): No directory provided for syscheck to monitor.\n' '2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:136 at main(): ' 'INFO: (6001): File integrity monitoring disabled.\n' '2022/02/03 20:04:49 rootcheck[10000] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:04:39 wazuh-db[9873] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized', '2022/02/03 20:04:39 wazuh-db[9873] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:04:39 wazuh-syscheckd[9877] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:04:39 wazuh-syscheckd[9877] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:04:39 wazuh-syscheckd[9877] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:04:47 wazuh-integratord: INFO: Remote ' 'integrations not configured. Clean exit.', '2022/02/03 20:04:47 wazuh-db[9954] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized', '2022/02/03 20:04:47 wazuh-db[9954] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:04:49 wazuh-syscheckd[10000] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:04:49 wazuh-syscheckd[10000] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:04:49 wazuh-syscheckd[10000] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:118 at ' 'main(): INFO: (6678): No directory provided for syscheck to ' 'monitor.', '2022/02/03 20:04:49 wazuh-syscheckd[10000] main.c:136 at ' 'main(): INFO: (6001): File integrity monitoring disabled.', '2022/02/03 20:04:49 rootcheck[10000] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-apid...\n' 'Started wazuh-csyslogd...\n' 'Started wazuh-dbd...\n' 'Started wazuh-integratord...\n' 'Started wazuh-agentlessd...\n' 'Started wazuh-authd...\n' 'Started wazuh-db...\n' 'Started wazuh-execd...\n' 'Started wazuh-analysisd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-remoted...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-monitord...\n' 'Started wazuh-modulesd...\n' 'Started wazuh-clusterd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-apid...', 'Started wazuh-csyslogd...', 'Started wazuh-dbd...', 'Started wazuh-integratord...', 'Started wazuh-agentlessd...', 'Started wazuh-authd...', 'Started wazuh-db...', 'Started wazuh-execd...', 'Started wazuh-analysisd...', 'Started wazuh-syscheckd...', 'Started wazuh-remoted...', 'Started wazuh-logcollector...', 'Started wazuh-monitord...', 'Started wazuh-modulesd...', 'Started wazuh-clusterd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:04:49 wazuh-syscheckd[10000] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpmzr4qxrd -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.647360', 'end': '2022-02-03 20:05:02.151055', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:01.503695', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-delete-wazuh-agent1] 67.53
------------------------------Captured stderr call------------------------------
2022-02-03 16:05:22,522 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:22,524 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:22,525 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:22,526 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:05:22,529 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:05:22,529 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:22,529 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:05:22,532 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:05:24,579 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:05:25,080 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:05:26,044 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:05:26,045 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:05:26,046 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:05:18 wazuh-syscheckd[15263] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915118,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"26644d5c7d27080d57e04ca8d9b81bc2745acff2"}} 2022-02-03 16:05:26,046 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:04:52 wazuh-db[9954] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/tmpobpl_unb","version":2,"timestamp":1643915092,"attributes":{"type":"file","size":8,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091197,"mtime":1643915068,"hash_md5":"e770e54c4c42d3307c141c0c8948992a","hash_sha1":"9eab19985b11b15f91f936e463ea74f1dfe88e32","hash_sha256":"b1893f8d4b1596c20d6f83a784b2b0468c22fb83ce4ff2033ff86a37865d41d8","checksum":"43682e112a9da304c49efa90b4a4e007a4129650"}} 2022-02-03 16:05:53,996 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:53,999 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:05:54,000 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:05:54,003 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:05:56,026 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:05:57,005 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:05:57,006 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:05:57,008 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:05:49 wazuh-syscheckd[15728] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpcd47jy9j -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.755235', 'end': '2022-02-03 20:05:05.512216', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:04.756981', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpiv2zzr2b -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.802651', 'end': '2022-02-03 20:05:08.968998', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:08.166347', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp595gfqpq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:05:18 wazuh-syscheckd[15263] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915118,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"26644d5c7d27080d57e04ca8d9b81bc2745acff2"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:04:52 wazuh-db[9954] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: syscheck save2 {"path":"/testdir1/tmpobpl_unb","version":2,"timestamp":1643915092,"attributes":{"type":"file","size":8,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091197,"mtime":1643915068,"hash_md5":"e770e54c4c42d3307c141c0c8948992a","hash_sha1":"9eab19985b11b15f91f936e463ea74f1dfe88e32","hash_sha256":"b1893f8d4b1596c20d6f83a784b2b0468c22fb83ce4ff2033ff86a37865d41d8","checksum":"43682e112a9da304c49efa90b4a4e007a4129650"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpuyztdj4_ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915127.2800176-113780-263788701856096/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915127.2800176-113780-263788701856096/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp_nq4p4t3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915132.3563046-114168-81599354425371/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915132.3563046-114168-81599354425371/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpylaaag3l -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nKilling wazuh-modulesd... \nKilling wazuh-logcollector... \nKilling wazuh-syscheckd... \nKilling wazuh-agentd... \nKilling wazuh-execd... \nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:01.428244', 'end': '2022-02-03 20:05:40.235798', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:38.807554', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-modulesd... \n' 'Killing wazuh-logcollector... \n' 'Killing wazuh-syscheckd... \n' 'Killing wazuh-agentd... \n' 'Killing wazuh-execd... \n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-modulesd... ', 'Killing wazuh-logcollector... ', 'Killing wazuh-syscheckd... ', 'Killing wazuh-agentd... ', 'Killing wazuh-execd... ', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp1xymytgi -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.717889', 'end': '2022-02-03 20:05:43.523959', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:42.806070', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpyp7hznjq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-agent1", exit_status=0, stdout=b"wazuh-agent1 | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/02/03 20:05:46 wazuh-syscheckd[15692] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir1' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:05:48 wazuh-syscheckd[15728] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir1' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir2' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 at read_attr(): DEBUG: Could not check the real path of '/testdir3' due to [(2)-(No such file or directory)].\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node ^/proc OK?\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 0\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2520 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2527 at process_option_regex(): DEBUG: Found ignore regex node .log$|.swp$ OK?\n2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2528 at process_option_regex(): DEBUG: Found ignore regex size 1\n2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:95 at Read_Syscheck_Config(): DEBUG: (6208): Reading Client Configuration [etc/ossec.conf]\n2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/02/03 20:05:48 rootcheck[15728] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:08.023921', 'end': '2022-02-03 20:05:53.668823', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:05:45.644902', 'stderr': '2022/02/03 20:05:46 wazuh-syscheckd[15692] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir1' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir1' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir2' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:1218 ' 'at read_attr(): DEBUG: Could not check the real path of ' "'/testdir3' due to [(2)-(No such file or directory)].\n" '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ^/proc ' 'OK?\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 0\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2520 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2527 ' 'at process_option_regex(): DEBUG: Found ignore regex node ' '.log$|.swp$ OK?\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] syscheck-config.c:2528 ' 'at process_option_regex(): DEBUG: Found ignore regex size 1\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/02/03 20:05:48 rootcheck[15728] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:05:46 wazuh-syscheckd[15692] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir1' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:05:46 wazuh-syscheckd[15692] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:05:46 wazuh-syscheckd[15692] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:05:46 wazuh-syscheckd[15692] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:05:48 wazuh-syscheckd[15728] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir1' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir2' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:1218 at read_attr(): DEBUG: Could not ' "check the real path of '/testdir3' due to [(2)-(No such " 'file or directory)].', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node ^/proc OK?', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 0', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2520 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2527 at process_option_regex(): DEBUG: ' 'Found ignore regex node .log$|.swp$ OK?', '2022/02/03 20:05:48 wazuh-syscheckd[15728] ' 'syscheck-config.c:2528 at process_option_regex(): DEBUG: ' 'Found ignore regex size 1', '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:95 at ' 'Read_Syscheck_Config(): DEBUG: (6208): Reading Client ' 'Configuration [etc/ossec.conf]', '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:208 ' 'at os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/02/03 20:05:48 wazuh-syscheckd[15728] agent_op.c:227 ' 'at os_read_agent_profile(): DEBUG: os_read_agent_profile() ' '= [debian, debian10]', '2022/02/03 20:05:48 wazuh-syscheckd[15728] config.c:375 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/02/03 20:05:48 rootcheck[15728] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:05:49 wazuh-syscheckd[15728] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpupro5c6x -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args \'python /var/system_query_db.py --db_path /var/ossec/queue/db/001.db --query " select * from fim_entry where full_path=\'"\'"\'"\'"\'"\'/testdir1/testdir1.txt\'"\'"\'"\'"\'"\'"\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED | rc=0 >>\n[]\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'python /var/system_query_db.py --db_path /var/ossec/queue/db/001.db --query " select * from fim_entry where full_path=\'"\'/testdir1/testdir1.txt\'"\'"', {'check': False, 'become': False}): {'changed': True, 'cmd': ['python', '/var/system_query_db.py', '--db_path', '/var/ossec/queue/db/001.db', '--query', " select * from fim_entry where full_path='/testdir1/testdir1.txt'"], 'delta': '0:00:00.937891', 'end': '2022-02-03 20:06:05.208246', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:04.270355', 'stderr': '', 'stderr_lines': [], 'stdout': '[]', 'stdout_lines': ['[]']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpff04s7lr -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args \'rm -rf \'"\'"\'/testdir1/testdir1.txt\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', "rm -rf '/testdir1/testdir1.txt'", {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', '/testdir1/testdir1.txt'], 'delta': '0:00:02.002031', 'end': '2022-02-03 20:06:09.633455', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:07.631424', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}
Passed test_synchronization.py::test_Synchronization_create_file_agent_stopped[testdir1-delete-wazuh-manager] 82.29
------------------------------Captured stderr call------------------------------
2022-02-03 16:06:28,844 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:06:28,846 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2022-02-03 16:06:28,847 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-agent1_ossec.log.tmp 2022-02-03 16:06:28,849 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:06:28,850 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:06:28,851 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:06:28,851 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:06:28,856 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:06:30,876 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Sending integrity control message: (.+)$ 2022-02-03 16:06:30,880 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Agent 001 query: (.+) save2 2022-02-03 16:06:31,859 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:06:31,859 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:06:31,863 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2022/02/03 20:05:49 wazuh-syscheckd[15728] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915149,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"e8e94bbb0d223229bc86b24b01546b5813065c0f"}} 2022-02-03 16:06:31,863 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:06:28 wazuh-db[9954] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/testdir1.txt","timestamp":1643915183,"version":2,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643915176,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"7051aa136476fd63124f69b3fa5fa4426b03238c"}} 2022-02-03 16:07:17,431 - wazuh_testing - DEBUG - Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:07:17,433 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log 2022-02-03 16:07:17,438 - wazuh_testing - DEBUG - Starting file composer for wazuh-manager and path: /var/ossec/logs/ossec.log. Composite file in /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/test_fim/test_synchronization/tmp/wazuh-manager_ossec.log.tmp 2022-02-03 16:07:17,439 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:07:19,467 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-manager and message: .*Initializing FIM Integrity Synchronization check. (.+)$ 2022-02-03 16:07:20,441 - wazuh_testing - DEBUG - Cleaning temporal files... 2022-02-03 16:07:20,441 - wazuh_testing - DEBUG - Checking results... 2022-02-03 16:07:20,443 - wazuh_testing - DEBUG - Received from wazuh-manager the expected message: 2022/02/03 20:07:10 wazuh-syscheckd[11133] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds.
-------------------------------Captured log call--------------------------------
DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpkd8xab7e -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'mkdir testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'mkdir testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['mkdir', 'testdir1'], 'delta': '0:00:00.823332', 'end': '2022-02-03 20:06:13.220305', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:12.396973', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphz848ygc -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'touch testdir1/testdir1.txt' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'touch testdir1/testdir1.txt', {'check': False, 'become': False}): {'changed': True, 'cmd': ['touch', 'testdir1/testdir1.txt'], 'delta': '0:00:00.796364', 'end': '2022-02-03 20:06:16.461648', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:15.665284', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsv2omb9v -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-agent1 the expected message: 2022/02/03 20:05:49 wazuh-syscheckd[15728] run_check.c:82 at fim_send_sync_msg(): DEBUG: (6317): Sending integrity control message: {"component":"fim_file","type":"integrity_check_global","data":{"id":1643915149,"version":2,"begin":"/bin/bash","end":"/usr/sbin/zic","checksum":"e8e94bbb0d223229bc86b24b01546b5813065c0f"}} DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:06:28 wazuh-db[9954] wdb_parser.c:246 at wdb_parse(): DEBUG: Agent 001 query: fim_file save2 {"path":"/testdir1/testdir1.txt","timestamp":1643915183,"version":2,"attributes":{"type":"file","size":0,"perm":"rw-r--r--","uid":"0","gid":"0","user_name":"root","group_name":"root","inode":7091147,"mtime":1643915176,"hash_md5":"d41d8cd98f00b204e9800998ecf8427e","hash_sha1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","hash_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","checksum":"7051aa136476fd63124f69b3fa5fa4426b03238c"}} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpd39dkbjr -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915193.171414-117528-176787388774297/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915193.171414-117528-176787388774297/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp1m8es92a -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "ossec",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "ossec",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1643915198.285065-117917-211654850155317/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'ossec', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'ossec', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1643915198.285065-117917-211654850155317/source', 'state': 'file', 'uid': 999} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp8erv1z2e -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control stop' wazuh-manager", exit_status=0, stdout=b'wazuh-manager | CHANGED | rc=0 >>\nKilling wazuh-clusterd...\nKilling wazuh-modulesd...\nKilling wazuh-monitord...\nKilling wazuh-logcollector...\nKilling wazuh-remoted...\nKilling wazuh-syscheckd...\nKilling wazuh-analysisd...\nwazuh-maild not running...\nKilling wazuh-execd...\nKilling wazuh-db...\nKilling wazuh-authd...\nwazuh-agentlessd not running...\nwazuh-integratord not running...\nwazuh-dbd not running...\nwazuh-csyslogd not running...\nKilling wazuh-apid...\nWazuh v4.2.5 Stopped\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control stop', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'stop'], 'delta': '0:00:02.994239', 'end': '2022-02-03 20:06:47.624791', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:44.630552', 'stderr': '', 'stderr_lines': [], 'stdout': 'Killing wazuh-clusterd...\n' 'Killing wazuh-modulesd...\n' 'Killing wazuh-monitord...\n' 'Killing wazuh-logcollector...\n' 'Killing wazuh-remoted...\n' 'Killing wazuh-syscheckd...\n' 'Killing wazuh-analysisd...\n' 'wazuh-maild not running...\n' 'Killing wazuh-execd...\n' 'Killing wazuh-db...\n' 'Killing wazuh-authd...\n' 'wazuh-agentlessd not running...\n' 'wazuh-integratord not running...\n' 'wazuh-dbd not running...\n' 'wazuh-csyslogd not running...\n' 'Killing wazuh-apid...\n' 'Wazuh v4.2.5 Stopped', 'stdout_lines': ['Killing wazuh-clusterd...', 'Killing wazuh-modulesd...', 'Killing wazuh-monitord...', 'Killing wazuh-logcollector...', 'Killing wazuh-remoted...', 'Killing wazuh-syscheckd...', 'Killing wazuh-analysisd...', 'wazuh-maild not running...', 'Killing wazuh-execd...', 'Killing wazuh-db...', 'Killing wazuh-authd...', 'wazuh-agentlessd not running...', 'wazuh-integratord not running...', 'wazuh-dbd not running...', 'wazuh-csyslogd not running...', 'Killing wazuh-apid...', 'Wazuh v4.2.5 Stopped']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpd3yfk7u1 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args 'rm -rf testdir1' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'rm -rf testdir1', {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', 'testdir1'], 'delta': '0:00:00.710666', 'end': '2022-02-03 20:06:50.968192', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:50.257526', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpdnhc4ejj -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args '/var/ossec/bin/wazuh-control start' wazuh-manager", exit_status=0, stdout=b"wazuh-manager | CHANGED | rc=0 >>\nStarting Wazuh v4.2.5...\nStarted wazuh-apid...\nStarted wazuh-csyslogd...\nStarted wazuh-dbd...\nStarted wazuh-integratord...\nStarted wazuh-agentlessd...\nStarted wazuh-authd...\nStarted wazuh-db...\nStarted wazuh-execd...\nStarted wazuh-analysisd...\nStarted wazuh-syscheckd...\nStarted wazuh-remoted...\nStarted wazuh-logcollector...\nStarted wazuh-monitord...\nStarted wazuh-modulesd...\nStarted wazuh-clusterd...\nCompleted.2022/02/03 20:06:59 wazuh-db[10882] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:06:59 wazuh-db[10882] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:07:00 wazuh-syscheckd[10886] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:07:00 wazuh-syscheckd[10886] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:07:00 wazuh-syscheckd[10886] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:07:07 wazuh-integratord: INFO: Remote integrations not configured. Clean exit.\n2022/02/03 20:07:07 wazuh-db[10963] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:07:07 wazuh-db[10963] main.c:101 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/02/03 20:07:10 wazuh-syscheckd[11133] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/02/03 20:07:10 wazuh-syscheckd[11133] config.c:87 at Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: 'etc/ossec.conf'\n2022/02/03 20:07:10 wazuh-syscheckd[11133] syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: No directory entries to organize in syscheck configuration.\n2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:118 at main(): INFO: (6678): No directory provided for syscheck to monitor.\n2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:136 at main(): INFO: (6001): File integrity monitoring disabled.\n2022/02/03 20:07:10 rootcheck[11133] rootcheck.c:202 at rootcheck_init(): INFO: Rootcheck disabled.\n", stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/wazuh-control start', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/wazuh-control', 'start'], 'delta': '0:00:23.620456', 'end': '2022-02-03 20:07:17.127220', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:06:53.506764', 'stderr': '2022/02/03 20:06:59 wazuh-db[10882] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/02/03 20:06:59 wazuh-db[10882] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:07:00 wazuh-syscheckd[10886] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:07:00 wazuh-syscheckd[10886] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:07:00 wazuh-syscheckd[10886] syscheck-config.c:122 ' 'at organize_syscheck_dirs(): DEBUG: No directory entries to ' 'organize in syscheck configuration.\n' '2022/02/03 20:07:07 wazuh-integratord: INFO: Remote integrations ' 'not configured. Clean exit.\n' '2022/02/03 20:07:07 wazuh-db[10963] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/02/03 20:07:07 wazuh-db[10963] main.c:101 at main(): DEBUG: ' 'Wazuh home directory: /var/ossec\n' '2022/02/03 20:07:10 wazuh-syscheckd[11133] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized\n' '2022/02/03 20:07:10 wazuh-syscheckd[11133] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading configuration file: ' "'etc/ossec.conf'\n" '2022/02/03 20:07:10 wazuh-syscheckd[11133] syscheck-config.c:122 ' 'at organize_syscheck_dirs(): DEBUG: No directory entries to ' 'organize in syscheck configuration.\n' '2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:118 at main(): ' 'INFO: (6678): No directory provided for syscheck to monitor.\n' '2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:136 at main(): ' 'INFO: (6001): File integrity monitoring disabled.\n' '2022/02/03 20:07:10 rootcheck[11133] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.', 'stderr_lines': ['2022/02/03 20:06:59 wazuh-db[10882] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:06:59 wazuh-db[10882] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:07:00 wazuh-syscheckd[10886] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:07:00 wazuh-syscheckd[10886] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:07:00 wazuh-syscheckd[10886] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:07:07 wazuh-integratord: INFO: Remote ' 'integrations not configured. Clean exit.', '2022/02/03 20:07:07 wazuh-db[10963] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:07:07 wazuh-db[10963] main.c:101 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec', '2022/02/03 20:07:10 wazuh-syscheckd[11133] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/02/03 20:07:10 wazuh-syscheckd[11133] config.c:87 at ' 'Read_Syscheck_Config(): DEBUG: (6287): Reading ' "configuration file: 'etc/ossec.conf'", '2022/02/03 20:07:10 wazuh-syscheckd[11133] ' 'syscheck-config.c:122 at organize_syscheck_dirs(): DEBUG: ' 'No directory entries to organize in syscheck configuration.', '2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:118 at ' 'main(): INFO: (6678): No directory provided for syscheck to ' 'monitor.', '2022/02/03 20:07:10 wazuh-syscheckd[11133] main.c:136 at ' 'main(): INFO: (6001): File integrity monitoring disabled.', '2022/02/03 20:07:10 rootcheck[11133] rootcheck.c:202 at ' 'rootcheck_init(): INFO: Rootcheck disabled.'], 'stdout': 'Starting Wazuh v4.2.5...\n' 'Started wazuh-apid...\n' 'Started wazuh-csyslogd...\n' 'Started wazuh-dbd...\n' 'Started wazuh-integratord...\n' 'Started wazuh-agentlessd...\n' 'Started wazuh-authd...\n' 'Started wazuh-db...\n' 'Started wazuh-execd...\n' 'Started wazuh-analysisd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-remoted...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-monitord...\n' 'Started wazuh-modulesd...\n' 'Started wazuh-clusterd...\n' 'Completed.', 'stdout_lines': ['Starting Wazuh v4.2.5...', 'Started wazuh-apid...', 'Started wazuh-csyslogd...', 'Started wazuh-dbd...', 'Started wazuh-integratord...', 'Started wazuh-agentlessd...', 'Started wazuh-authd...', 'Started wazuh-db...', 'Started wazuh-execd...', 'Started wazuh-analysisd...', 'Started wazuh-syscheckd...', 'Started wazuh-remoted...', 'Started wazuh-logcollector...', 'Started wazuh-monitord...', 'Started wazuh-modulesd...', 'Started wazuh-clusterd...', 'Completed.']} DEBUG  wazuh_testing:monitoring.py:887 Add new file composer process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:891 Add new file monitor process for wazuh-manager and path: /var/ossec/logs/ossec.log DEBUG  wazuh_testing:monitoring.py:993 Cleaning temporal files... DEBUG  wazuh_testing:monitoring.py:982 Checking results... DEBUG  wazuh_testing:monitoring.py:988 Received from wazuh-manager the expected message: 2022/02/03 20:07:10 wazuh-syscheckd[11133] fim_sync.c:57 at fim_run_integrity(): DEBUG: Initializing FIM Integrity Synchronization check. Sync interval is 300 seconds. DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpbymulkpt -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args \'python /var/system_query_db.py --db_path /var/ossec/queue/db/001.db --query " select * from fim_entry where full_path=\'"\'"\'"\'"\'"\'/testdir1/testdir1.txt\'"\'"\'"\'"\'"\'"\' wazuh-manager', exit_status=0, stdout=b'wazuh-manager | CHANGED | rc=0 >>\n[]\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', 'python /var/system_query_db.py --db_path /var/ossec/queue/db/001.db --query " select * from fim_entry where full_path=\'"\'/testdir1/testdir1.txt\'"\'"', {'check': False, 'become': False}): {'changed': True, 'cmd': ['python', '/var/system_query_db.py', '--db_path', '/var/ossec/queue/db/001.db', '--query', " select * from fim_entry where full_path='/testdir1/testdir1.txt'"], 'delta': '0:00:00.850954', 'end': '2022-02-03 20:07:28.642988', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:07:27.792034', 'stderr': '', 'stderr_lines': [], 'stdout': '[]', 'stdout_lines': ['[]']} DEBUG  testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp7nljkt_6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/one_manager_agent/inventory.yml -m command --args \'rm -rf \'"\'"\'/testdir1/testdir1.txt\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n\n', stderr=None) INFO  testinfra:ansible.py:58 RUN Ansible('command', "rm -rf '/testdir1/testdir1.txt'", {'check': False, 'become': False}): {'changed': True, 'cmd': ['rm', '-rf', '/testdir1/testdir1.txt'], 'delta': '0:00:00.773212', 'end': '2022-02-03 20:07:31.991033', 'msg': '', 'rc': 0, 'start': '2022-02-03 20:07:31.217821', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []}