Hi Shenal,
Please follow the next steps
First check that the filesystem is not filled up.
You can do this with the following command:
df -h
and check that the filesystem where the wazuh-manager is installed (/var/ossec) has space available.
Once you confirm there is space:
Check the file /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
at the end of the file you will see a content similar to this:
hosts:
- default:
url: https://<wazuh-server-ip>
port: 55000
username: wazuh-wui
password: wazuh-wui
run_as: false
url is the IP of the server where wazuh-manager is installed. Port is the listening port (55000 by default)
and username and password are the credentials used by the wazuh-api. These values may differ in your configuration but it should look similar with your information.
To test this configuration is ok execute the following curl command:
curl -u api_user:api_pass -k -X GET "https://<wazuh-server-ip>:55000/security/user/authenticate?raw=true"
Replacing api_user and api_pass by the username and password defined in /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
And replacing the with the corresponding ip of the server where wazuh-manager is installed.
Once you checked this is working and the above curl command is successful proceed to restart wazuh-dasboard
systemctl restart wazuh-dashboard
Go to your browser and remove the cache (Cookis, local storage, etc) And try to access the wazuh-dashboard again on your browser.
If this still doesn´t work please restart the wazuh-manager
systemctl restart wazuh-manager
Once restarted please run the following command:
/var/ossec/bin/wazuh-control status
And check the following services are running:
wazuh-monitord is running...
wazuh-remoted is running...
wazuh-analysisd is running...
wazuh-db is running...
wazuh-authd is running...
This should have your environment back working, in case you are still getting an error please share it with me which servers are still failing on the /var/ossec/bin/wazuh-control status
and the errors that show up on ossec.log
Regards,