So, I've just updated the script and after some tweaking it works when executing it manually.
Is there any way to test it from the alert flow?
This is the integration declaration on ossec.conf
<integration>
<name>teams-alert</name>
<alert_format>json</alert_format>
<level>7</level>
</integration>
On the integration.log after excecuting the script it shows this messages:
2026-03-09 12:30:03 - Teams Integration: Script called with args: test-data/test-teams.json
2026-03-09 12:30:03 - Teams Integration: Using alert file: test-data/test-teams.json
2026-03-09 12:30:03 - Teams Integration: Sending alert: Rule 100001, Level 1, Agent Servidor-Test
2026-03-09 12:30:09 - Teams Integration: SUCCESS: Alert sent to Teams (HTTP 200)
These are the permissions for the integrations located in ‘/var/ossec/integrations/’.
-rwxr-x--- 1 root wazuh 3506 mar 9 11:40 jsm-ops
-rwxr-xr-- 1 root wazuh 1045 ene 8 20:06 maltiverse
-rwxr-xr-- 1 root wazuh 20926 ene 8 20:06 maltiverse.py
-rwxr-xr-- 1 root wazuh 1045 ene 8 20:06 pagerduty
-rwxr-xr-- 1 root wazuh 6449 ene 8 20:06 pagerduty.py
-rwxr-xr-- 1 root wazuh 1045 ene 8 20:06 shuffle
-rwxr-xr-- 1 root wazuh 7249 ene 8 20:06 shuffle.py
-rwxr-xr-- 1 root wazuh 1045 ene 8 20:06 slack
-rwxr-xr-- 1 root wazuh 6835 ene 8 20:06 slack.py
-rwxr-x--- 1 root wazuh 3637 mar 9 10:09 teams-alert
drwxr-xr-x 2 root root 4096 mar 9 10:51 test-data
-rwxr-xr-- 1 root wazuh 1045 ene 8 20:06 virustotal
-rwxr-xr-- 1 root wazuh 10691 ene 8 20:06 virustotal.py