Rodrigo Correia
11/21/2025, 12:49 PMFile "/Users/_info_/lib/python3.9/site-packages/elementary/config/config.py", line 280, in validate_monitor
raise InvalidArgumentsError(
elementary.exceptions.exceptions.InvalidArgumentsError: Either a Slack token and a channel, a Slack webhook or a Microsoft Teams webhook is required.
Is it possible to get an explanation/instructions on how to get this to work?kapa.ai
11/21/2025, 12:49 PMkapa.ai
11/21/2025, 12:49 PMedr monitor isn’t picking up your Teams webhook from config.yml at all, so it behaves as if no Slack/Teams config exists. From the docs, for Teams the config.yml must look like this and live under HOME_DIR/.edr/config.yml (or be passed via --config-dir): [[Teams alerts](https://docs.elementary-data.com/oss/guides/alerts/send-teams-alerts); [Teams setup](https://docs.elementary-data.com/oss/deployment-and-configuration/teams)] yaml teams: teams_webhook: <your_teams_webhook_url> Key things to check: 1. Location of config.yml - Default: ~/.edr/config.yml (i.e., a .edr directory inside the home directory of the user running edr). [[Slack setup](https://docs.elementary-data.com/oss/deployment-and-configuration/slack); [Teams alerts](https://docs.elementary-data.com/oss/guides/alerts/send-teams-alerts)] - To override, point edr to the directory (not the file) with `--config-dir`: bash edr monitor --config-dir /path/to/.edr (Notice in similar Slack/Send‑report issues the fix was to pass the directory, without config.yml at the end.) [[Slack send-report issue](https://slack.com/archives/C02CTC89LAX/p1700569729527469); [Config-dir usage](https://slack.com/archives/C02CTC89LAX/p1683176836347909)] 2. File name and YAML structure - The file must be exactly config.yml. - Ensure there is no extra indentation or top‑level keys wrapping teams: and that teams_webhook is nested under teams, like the snippet above. - Don’t mix in partial/empty Slack config; in multiple threads, a misconfigured or unread config caused the same InvalidArgumentsError until the YAML was corrected and read from the right directory. [[Slack config YAML](https://docs.elementary-data.com/oss/deployment-and-configuration/slack); [Config placement](https://slack.com/archives/C02CTC89LAX/p1683176836347909)] 3. Verify config.yml is being read From the same environment where you run `edr`: bash ls ~/.edr | grep config.yml - If this returns nothing, your file isn’t in the default path (move/copy it there or use --config-dir as above). [[Config location check](https://slack.com/archives/C02CTC89LAX/p1683176836347909)] - If it’s there but you still get the error, try explicitly passing --config-dir to rule out path issues. 4. Sanity check with CLI arg Since edr monitor --teams-webhook <url> already works for you, if the same URL in config.yml + edr monitor --config-dir <dir> still fails, it strongly indicates a path or YAML structure issue, not the webhook itself. Similar behavior is documented for Slack and send‑report. [[Slack monitor config issues](https://slack.com/archives/C02CTC89LAX/p1689095621150099); [Send-report config-dir](https://slack.com/archives/C02CTC89LAX/p1700569729527469)] If you’d like, paste (sanitized) your config.yml contents and the exact edr monitor command you’re running, and I can point out what’s likely wrong based on these patterns.