Feature request/proposal: Downtime until OK/UP
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 616
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
I'd like to propose a new feature for downtimes (or a new type of downtime):
The possibility to define a downtime that stays as long the host/service is in a problem state and automatically gets removed when it switches to UP/OK.
Our use case for this would be the following:
Currently we have hundreds of virtual desktop servers (terminal servers) that automatically scale (get shut down/booted up) based on the number of sessions needed.
As they always stay in the monitoring, we need to set downtimes when they shut down. This is done via a shutdown script on the host against the Icinga 2 API.
On boot the inverse happens. The downtimes need to be removed. This is another script, getting the downtimes (only those created by the shutdown script), triggering all checks (to get them into an OK state to prevent false-positive notifications on old states) and then remove the downtime objects.
With this feature the startup script and its API calls would become obsolete. And I could imagine that there are other use cases as well :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files or tests; start by tracing how downtimes are created, evaluated, and removed through the Icinga 2 API. Compare the proposed lifecycle with existing downtime behavior and the shutdown/startup scripts described here. Done means a downtime can persist while a host or service is in a problem state and is removed automatically when it reaches UP or OK.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend, observability-sre
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100