Hello Mehran,
we are happy you started to use Wazuh.
Let me give you an answer.
The Wazuh Agent component is used to collect different types of system and application data that it forwards to the Wazuh Manager through an encrypted and authenticated channel. Different Agent tasks or processes are used to monitor the system in different ways (e.g., monitoring file integrity, reading system log messages, scanning system configurations, etc.).
The Wazuh Manager component is in charge of analyzing the data received from the Wazuh Agents and triggering alerts when an event matches a rule (e.g. intrusion detected, file changed, a configuration not compliant with policy, possible rootkit, etc…). It is also in charge of Agent registration and RESTful API (Wazuh API).
And, finally, the
Manager also runs
Agent components with the purpose of monitoring itself. It reads its own logs and parse the information to generate alerts that will be labeled with the
agent.id: 000. Then, the registered Agents start at
agent.id: 001 consecutively.
Then, it is not necessary to install the Wazuh Agent component on the machine where Manager and API are already installed. In fact, you are advised every time you try to install the Agent when the Manager is installed and vice versa.
I hope this helps you.
Don't hesitate to ask as many questions as you need.
Best regards,
Jose M.