Skip to main content

Wazuh_

๐Ÿงผ Full Wazuh Cleanup & Fresh Installโ€‹

Use this command to fully uninstall and reinstall Wazuh, including the manager, indexer, dashboard, and related components. Useful during lab resets or corrupted installs.

sudo bash wazuh-install.sh -a -o

โš ๏ธ This will wipe all data and configs โ€” use only in controlled environments (e.g., test labs).


โš™๏ธ Enable Vulnerability Detector & Other Featuresโ€‹

Edit the Wazuh configuration file to manually enable features like the vulnerability detector, syscollector, file integrity monitoring, etc.

sudo nano /var/ossec/etc/ossec.conf

๐Ÿ“ Tip: Look for <vulnerability-detector>, <syscollector>, and other modules in the XML structure.


๐Ÿ” Restart the Wazuh Manager Serviceโ€‹

Apply changes made to configuration files by restarting the main Wazuh manager daemon.

sudo systemctl restart wazuh-manager

๐Ÿ”„ Needed after config edits or upgrades.


๐Ÿ” Reset Wazuh Dashboard User Passwordsโ€‹

Reset all Wazuh dashboard user passwords โ€” including admin. The script is interactive and will prompt for new passwords.

sudo bash /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh -a

๐Ÿ›‘ This resets all dashboard users. For just admin, use:

sudo bash /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh -u admin

๐Ÿ“Œ Notesโ€‹

Command / FilePurpose
wazuh-install.sh -a -oFull uninstall & reinstall
ossec.confCore config for Wazuh agent/manager features
systemctl restart wazuh-managerReload config & restart services
wazuh-passwords-tool.shResets OpenSearch / Dashboard user passwords