Was able to find one server that was connected to our wazuh-manager before the wazuh-agents upgrade happened. When I checked the wazuh-agent for this server was not upgraded and stayed at v4.2.6
I checked the logs and here are some of the lines on it.
2023/08/10 13:47:01 wazuh-agentd: INFO: Requesting a key from server: 12.104.5.111
2023/08/10 13:47:01 wazuh-agentd: INFO: No authentication password provided
2023/08/10 13:47:01 wazuh-agentd: INFO: Using agent name as: sec-node10
2023/08/10 13:47:01 wazuh-agentd: INFO: Waiting for server reply
2023/08/10 13:47:01 wazuh-agentd: ERROR: Invalid password (from manager)
2023/08/10 13:47:01 wazuh-agentd: ERROR: Unable to add agent (from manager)
2023/08/10 13:47:11 wazuh-agentd: WARNING: (4101): Waiting for server reply (not started). Tried: '12.104.5.111'.
2023/08/10 13:47:11 wazuh-agentd: WARNING: Unable to connect to any server.
2023/08/10 13:47:11 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:47:11 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:48:21 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:48:21 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:48:49 wazuh-modulesd:syscollector: INFO: Stop received for Syscollector.
2023/08/10 13:48:49 wazuh-modulesd:syscollector: INFO: Module finished.
2023/08/10 13:48:50 wazuh-logcollector: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:48:50 wazuh-syscheckd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:48:50 wazuh-agentd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:48:50 wazuh-execd: INFO: (1314): Shutdown received. Deleting responses.
2023/08/10 13:48:50 wazuh-execd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:48:50 wazuh-execd: INFO: Started (pid: 3676045).
2023/08/10 13:48:51 wazuh-agentd: INFO: (1410): Reading authentication keys file.
2023/08/10 13:48:51 wazuh-agentd: INFO: Using notify time: 10 and max time to reconnect: 60
2023/08/10 13:48:51 wazuh-agentd: INFO: Version detected -> Linux |sec-node10 |5.15.0-76-generic |#83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 |x86_64 [Ubuntu|ubuntu: 20.04.6 LTS (Focal Fossa)] - Wazuh v4.2.6
2023/08/10 13:48:51 wazuh-agentd: INFO: Started (pid: 4271236).
2023/08/10 13:48:51 wazuh-agentd: INFO: Server IP Address: 12.104.5.111
2023/08/10 13:48:51 wazuh-agentd: INFO: Using AES as encryption method.
2023/08/10 13:48:51 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:48:52 wazuh-syscheckd: INFO: Started (pid: 3676069).
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/boot', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/etc', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mtab'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/hosts.deny'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mail/statistics'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random-seed'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random.seed'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/adjtime'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/httpd/logs'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/utmpx'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/wtmpx'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/cups/certs'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/dumpdates'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/svc/volatile'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6207): Ignore 'file' sregex '.log$|.swp$'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6004): No diff for file: '/etc/ssl/private.key'
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6000): Starting daemon...
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6010): File integrity monitoring scan frequency: 43200 seconds
2023/08/10 13:48:52 wazuh-syscheckd: INFO: (6008): File integrity monitoring scan started.
2023/08/10 13:48:53 wazuh-logcollector: INFO: Monitoring output of command(360): df -P
2023/08/10 13:48:53 wazuh-logcollector: INFO: Monitoring full output of command(360): netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\ \+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\ \([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g | sed 's/ == \(.*\) ==/:\1/' | sed 1,2d
2023/08/10 13:48:53 wazuh-logcollector: INFO: Monitoring full output of command(360): last -n 20
2023/08/10 13:48:53 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/ossec/logs/active-responses.log'.
2023/08/10 13:48:53 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/auth.log' due to [(2)-(No such file or directory)].
2023/08/10 13:48:53 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/auth.log'.
2023/08/10 13:48:53 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/syslog' due to [(2)-(No such file or directory)].
2023/08/10 13:48:53 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/syslog'.
2023/08/10 13:48:53 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/dpkg.log'.
2023/08/10 13:48:53 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/kern.log' due to [(2)-(No such file or directory)].
2023/08/10 13:48:53 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/kern.log'.
2023/08/10 13:48:53 wazuh-logcollector: INFO: Started (pid: 3676102).
2023/08/10 13:48:54 wazuh-modulesd: INFO: Started (pid: 3676119).
2023/08/10 13:48:54 wazuh-modulesd:agent-upgrade: INFO: (8153): Module Agent Upgrade started.
2023/08/10 13:48:54 wazuh-modulesd:ciscat: INFO: Module disabled. Exiting...
2023/08/10 13:48:54 wazuh-modulesd:osquery: INFO: Module disabled. Exiting...
2023/08/10 13:48:54 sca: INFO: Module started.
2023/08/10 13:48:54 wazuh-modulesd:control: INFO: Starting control thread.
2023/08/10 13:48:54 sca: INFO: Loaded policy '/var/ossec/ruleset/sca/cis_debian10.yml'
2023/08/10 13:48:54 sca: INFO: Starting Security Configuration Assessment scan.
2023/08/10 13:48:54 wazuh-modulesd:syscollector: INFO: Module started.
2023/08/10 13:48:54 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2023/08/10 13:48:54 sca: INFO: Starting evaluation of policy: '/var/ossec/ruleset/sca/cis_debian10.yml'
2023/08/10 13:48:55 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2023/08/10 13:50:01 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:50:01 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:51:11 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:51:11 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:52:21 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:52:21 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:53:31 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:53:31 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:54:32 wazuh-agentd: INFO: Requesting a key from server: 12.104.5.111
2023/08/10 13:54:32 wazuh-agentd: INFO: No authentication password provided
2023/08/10 13:54:32 wazuh-agentd: INFO: Using agent name as: sec-node10
2023/08/10 13:54:32 wazuh-agentd: INFO: Waiting for server reply
2023/08/10 13:54:32 wazuh-agentd: ERROR: Invalid password (from manager)
2023/08/10 13:54:32 wazuh-agentd: ERROR: Unable to add agent (from manager)
2023/08/10 13:54:42 wazuh-agentd: WARNING: (4101): Waiting for server reply (not started). Tried: '12.104.5.111'.
2023/08/10 13:54:42 wazuh-agentd: WARNING: Unable to connect to any server.
2023/08/10 13:54:42 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:54:42 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:55:52 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:55:52 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:57:02 wazuh-agentd: INFO: Closing connection to server (
12.104.5.111:35415/tcp).
2023/08/10 13:57:02 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:57:26 wazuh-logcollector: INFO: (1904): File not available, ignoring it: '/var/log/auth.log'.
2023/08/10 13:57:26 wazuh-logcollector: INFO: (1904): File not available, ignoring it: '/var/log/syslog'.
2023/08/10 13:57:26 wazuh-logcollector: INFO: (1904): File not available, ignoring it: '/var/log/kern.log'.
2023/08/10 13:57:33 wazuh-modulesd:syscollector: INFO: Stop received for Syscollector.
2023/08/10 13:57:33 wazuh-modulesd:syscollector: INFO: Module finished.
2023/08/10 13:57:34 wazuh-logcollector: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:57:34 wazuh-syscheckd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:57:34 wazuh-agentd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:57:34 wazuh-execd: INFO: (1314): Shutdown received. Deleting responses.
2023/08/10 13:57:34 wazuh-execd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2023/08/10 13:57:41 wazuh-execd: INFO: Started (pid: 3681520).
2023/08/10 13:57:42 wazuh-agentd: INFO: (1410): Reading authentication keys file.
2023/08/10 13:57:42 wazuh-agentd: INFO: Using notify time: 10 and max time to reconnect: 60
2023/08/10 13:57:42 wazuh-agentd: INFO: Version detected -> Linux |sec-node10 |5.15.0-76-generic |#83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 |x86_64 [Ubuntu|ubuntu: 20.04.6 LTS (Focal Fossa)] - Wazuh v4.2.6
2023/08/10 13:57:42 wazuh-agentd: INFO: Started (pid: 3681535).
2023/08/10 13:57:42 wazuh-agentd: INFO: Server IP Address: 12.104.5.111
2023/08/10 13:57:42 wazuh-agentd: INFO: Using AES as encryption method.
2023/08/10 13:57:42 wazuh-agentd: INFO: Trying to connect to server (
12.104.5.111:35415/tcp).
2023/08/10 13:57:43 wazuh-syscheckd: INFO: Started (pid: 3681570).
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/boot', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/etc', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mtab'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/hosts.deny'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mail/statistics'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random-seed'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random.seed'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/adjtime'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/httpd/logs'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/utmpx'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/wtmpx'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/cups/certs'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/dumpdates'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/svc/volatile'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6207): Ignore 'file' sregex '.log$|.swp$'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6004): No diff for file: '/etc/ssl/private.key'
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6000): Starting daemon...
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6010): File integrity monitoring scan frequency: 43200 seconds
2023/08/10 13:57:43 wazuh-syscheckd: INFO: (6008): File integrity monitoring scan started.
2023/08/10 13:57:44 wazuh-logcollector: INFO: Monitoring output of command(360): df -P
2023/08/10 13:57:44 wazuh-logcollector: INFO: Monitoring full output of command(360): netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\ \+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\ \([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g | sed 's/ == \(.*\) ==/:\1/' | sed 1,2d
2023/08/10 13:57:44 wazuh-logcollector: INFO: Monitoring full output of command(360): last -n 20
2023/08/10 13:57:44 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/ossec/logs/active-responses.log'.
2023/08/10 13:57:44 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/auth.log' due to [(2)-(No such file or directory)].
2023/08/10 13:57:44 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/auth.log'.
2023/08/10 13:57:44 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/syslog' due to [(2)-(No such file or directory)].
2023/08/10 13:57:44 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/syslog'.
2023/08/10 13:57:44 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/dpkg.log'.
2023/08/10 13:57:44 wazuh-logcollector: ERROR: (1103): Could not open file '/var/log/kern.log' due to [(2)-(No such file or directory)].
2023/08/10 13:57:44 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/kern.log'.
2023/08/10 13:57:44 wazuh-logcollector: INFO: Started (pid: 3681585).
2023/08/10 13:57:45 wazuh-modulesd: INFO: Started (pid: 3681637).
2023/08/10 13:57:45 wazuh-modulesd:agent-upgrade: INFO: (8153): Module Agent Upgrade started.
2023/08/10 13:57:45 wazuh-modulesd:ciscat: INFO: Module disabled. Exiting...
2023/08/10 13:57:45 wazuh-modulesd:osquery: INFO: Module disabled. Exiting...
2023/08/10 13:57:45 sca: INFO: Module started.
2023/08/10 13:57:45 wazuh-modulesd:control: INFO: Starting control thread.
2023/08/10 13:57:45 sca: INFO: Loaded policy '/var/ossec/ruleset/sca/cis_debian10.yml'
2023/08/10 13:57:45 sca: INFO: Starting Security Configuration Assessment scan.
2023/08/10 13:57:45 wazuh-modulesd:syscollector: INFO: Module started.
2023/08/10 13:57:45 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2023/08/10 13:57:45 sca: INFO: Starting evaluation of policy: '/var/ossec/ruleset/sca/cis_debian10.yml'
2023/08/10 13:57:46 wazuh-modulesd:syscollector: INFO: Evaluation finished.
Hi Victor, maybe you can make some sense into this. I'm not that well versed on what seems to be the problem. Thanks