Hello Sistemas,
When integrating with external applications like Teams, you need more than the integration block. I will just run through the requirements, and please let me know what you have done so far.
Prep the integration script and place it in the directory: /var/ossec/integrations/
Ensure you map the appropriate permissions to the script:
sudo chown root:wazuh /var/ossec/integrations/custom-teams.py
sudo chmod 750 /var/ossec/integrations/custom-teams.py
Add the integration block to the /var/ossec/etc/ossec.conf
<integration>
<name>custom-teams</name>
<hook_url>YOUR_TEAMS_WEBHOOK_URL_HERE</hook_url>
<level>10</level>
<alert_format>json</alert_format>
</integration>
This has the hook URL from Teams and also the alert level.
You can find more information regarding external connector integration in the documentation
here, which expands the scope on custom configuration. Other configurations would be done on Teams.
If you encounter any challenges, you can check the integration logs: tail -f /var/ossec/logs/integrations.log