No actions taken by AI to fix an incident after investigation
Describe the bug No actions taken by AI to fix an incident after investigation.
To Reproduce Steps to reproduce the behavior:
- Ensure, that 'Fix new incidents automatically' option from 'Incidents' - 'Settings' section is enabled.
- Install and run: Host AI Agent, Host Telemetry Agent on a host, for ex.: 'test01'
- Go to 'Hosts - <choose specific host item, for ex.: test01>'
- Click on 'Ask AI'
- Input message 'Declare an incident, high memory usage', approve for incident creation
- Go to 'Incidents', choose newly created incident from Step 5
- Wait for AI investigation completes.
- Instead of auto-fix, got message in 'Remediation' section: 'This incident is not linked to a Kubernetes cluster or an infrastructure resource, so OneUptime AI had nothing it could fix.' Remediation message is unclear.
- No affected resources are automatically added to the incident, but AI clearly understands context of an entity (for ex.: host 'test01')
Expected behavior Auto-fixes proceeded to (or proposed to) run after investigation correctly, according to permissions. Remediation message clearly states what happened in unambiguous terms. Affected resources automatically added as of AI investigation steps and at the incident creation.
Screenshots
Desktop:
- OS: MacOS
- Browser: Chrome
- Version: 155.0.8059.85
Deployment Type self hosted, docker run, VM Ubuntu 24.04 Version: 14.0.91 Commit: f6a03d03575003d8810610572e71b60a60d582fb
Thanks for the clear report. It was accurate.
What was wrong
When Ask AI declared an incident from a host's page, the incident was created linked to nothing, even though the conversation was about that host. OneUptime AI only investigates and fixes the resources an incident is linked to (its Affected Resources). So after the investigation, auto-remediation had nothing it could act on. The Remediation card's message didn't say what to do about it either.
What changed (#5303)
- An incident Ask AI declares from a resource's page is now linked to that resource. This covers hosts, Kubernetes clusters, Docker and Podman hosts, database servers, services and the other resource pages. Before you approve, the approval card says what the incident will be linked to, for example:
Linked to host "test01". - Ask AI can also link an existing incident or alert to the infrastructure it is about, for example "link this incident to host test01". It only links resources you can see, and only with your own permissions.
- When an incident is linked to nothing OneUptime AI can fix, the Remediation card now says so plainly: "This incident is not linked to a host, cluster or database, so OneUptime AI had nothing to fix."
- It then tells you what to do: add the host, cluster or database the incident is about under Affected Resources. A Go to Affected Resources button takes you there.
- Once you add one while the incident is open, OneUptime AI tries again, following your project's AI rules.
When you get it
In the next release. Self-hosted installs get it by upgrading.
In a setup like yours
Declare the incident from the host's Ask AI as before, and it will be linked to test01.
A host's Fixes setting is off by default. Until you change it, the Remediation card will say that fixes are off for test01 and link to that host's AI agent page. There you choose whether OneUptime AI may fix things on the host, and whether it asks first.
Left out on purpose
- Ask AI never links monitors to an incident it declares. A monitor linked to a manually declared incident pauses its own checks until the incident is resolved, so that stays your choice on the Declare Incident form.
- Two related gaps are on our list for later:
- incidents declared from Slack or Microsoft Teams can't pick the affected infrastructure yet;
- turning a host's Fixes on later doesn't make OneUptime AI retry an incident it has already looked at. It applies to incidents declared after the change.
Two follow-ups are now on master and ship in the next release (14.0.103).
#5303 linked an incident declared from a host's page to that host, so OneUptime AI had something to fix. Other places that open incidents and alerts had the same gap:
- Slack and Microsoft Teams (#5588): Slack's New Incident form and Teams' Create New Incident card now have an Affected Resources field. It searches hosts, devices, clusters, databases, cloud resources and services in the form's project, and only shows resources the person can see. The picks are linked to the incident. An incident declared in an alert's own channel is also linked to that alert.
- Security events (#5589): alerts and incidents from detection rules, threat intel, Data Security and a playbook's page-on-call step are linked to the resources their match names exactly.
#5589 also covers the case where fixing was turned off when the AI first looked. Turning Fixes on for a cluster or resource now makes OneUptime AI decide again for up to 25 open incidents and alerts it had skipped. A resolved record's card no longer says the AI will try again.