Obinna:
Thank you for your prompt response. Here are the relevant portions of the ossec.conf file on the Wazuh-Manager node:
<vulnerability-detection>
<enabled>yes</enabled>
<index-status>yes</index-status>
<feed-update-interval>60m</feed-update-interval>
</vulnerability-detection>
<ossec_config>
<indexer>
<enabled>yes</enabled>
<hosts>
<host>
https://192.168.128.108:9200</host>
</hosts>
<ssl>
<certificate_authorities>
<ca>/etc/filebeat/certs/root-ca.pem</ca>
</certificate_authorities>
<certificate>/etc/filebeat/certs/filebeat.pem</certificate>
<key>/etc/filebeat/certs/filebeat-key.pem</key>
</ssl>
</indexer>
</ossec_config>
With respect to certs:
root@wazuhserver:~# readlink -f /etc/filebeat/certs/root-ca.pem
/etc/filebeat/certs/root-ca.pem
root@wazuhserver:~# readlink -f /etc/filebeat/certs/filebeat.pem
/etc/filebeat/certs/filebeat.pem
root@wazuhserver:~# readlink -f /etc/filebeat/certs/filebeat-key.pem
/etc/filebeat/certs/filebeat-key.pem
Other Info:
root@wazuhserver:~# systemctl restart wazuh-manager && tail -f /var/ossec/logs/ossec.log | grep vul
2024/09/18 14:45:14 indexer-connector[1307283] indexerConnector.cpp:474 at operator()(): DEBUG: Unable to initialize IndexerConnector for index 'wazuh-states-vulnerabilities-wazuhserver': SSL peer certificate or SSH remote key was not OK. Retrying in 4 seconds.
2024/09/18 14:45:18 indexer-connector[1307283] indexerConnector.cpp:474 at operator()(): DEBUG: Unable to initialize IndexerConnector for index 'wazuh-states-vulnerabilities-wazuhserver': SSL peer certificate or SSH remote key was not OK. Retrying in 8 seconds.
2024/09/18 14:45:26 indexer-connector[1307283] indexerConnector.cpp:474 at operator()(): DEBUG: Unable to initialize IndexerConnector for index 'wazuh-states-vulnerabilities-wazuhserver': SSL peer certificate or SSH remote key was not OK. Retrying in 16 seconds.
2024/09/18 14:45:42 indexer-connector[1307283] indexerConnector.cpp:474 at operator()(): DEBUG: Unable to initialize IndexerConnector for index 'wazuh-states-vulnerabilities-wazuhserver': SSL peer certificate or SSH remote key was not OK. Retrying in 32 seconds.
2024/09/18 14:45:43 wazuh-modulesd:vulnerability-scanner[1307283] osScanner.hpp:346 at handleRequest(): DEBUG: Vulnerability scan for OS 'Debian GNU/Linux' on Agent '034' has completed.
2024/09/18 14:45:43 wazuh-modulesd:vulnerability-scanner[1307283] eventDetailsBuilder.hpp:101 at handleRequest(): DEBUG: Building event details for component type: 2
2024/09/18 14:45:43 wazuh-modulesd:vulnerability-scanner[1307283] scanOrchestrator.hpp:299 at run(): DEBUG: Event type: 3 processed
2024/09/18 14:45:45 wazuh-modulesd:vulnerability-scanner[1307283] scanOrchestrator.hpp:299 at run(): DEBUG: Event type: 11 processed
2024/09/18 14:45:46 wazuh-modulesd:vulnerability-scanner[1307283] scanOrchestrator.hpp:299 at run(): DEBUG: Event type: 11 processed
2024/09/18 14:46:14 indexer-connector[1307283] indexerConnector.cpp:474 at operator()(): DEBUG: Unable to initialize IndexerConnector for index 'wazuh-states-vulnerabilities-wazuhserver': No available server. Retrying in 60 seconds.
root@wazuhserver:~# ping 192.168.128.108
PING 192.168.128.108 (192.168.128.108) 56(84) bytes of data.
64 bytes from
192.168.128.108: icmp_seq=1 ttl=64 time=0.057 ms
64 bytes from
192.168.128.108: icmp_seq=2 ttl=64 time=0.079 ms
64 bytes from
192.168.128.108: icmp_seq=3 ttl=64 time=0.052 ms
{
"cluster_name" : "wazuh-indexer-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"discovered_master" : true,
"discovered_cluster_manager" : true,
"active_primary_shards" : 827,
"active_shards" : 827,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 2,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 99.75874547647769
}