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 / File | Purpose |
---|---|
wazuh-install.sh -a -o | Full uninstall & reinstall |
ossec.conf | Core config for Wazuh agent/manager features |
systemctl restart wazuh-manager | Reload config & restart services |
wazuh-passwords-tool.sh | Resets OpenSearch / Dashboard user passwords |