is it possible to set a custom state for a service/host
No - Icinga has no concept of “custom states”.
during a scheduled downtime? I want to create an availability report in
Grafana and right now Icinga sets the state on warning or critical during a
Indeed - the states reflect the current state of the service / host.
Downtime simply affects whether you get alerts telling you about the state or
So its not clear if its a real warning or a warning during a scheduled
How are you collecting the state from Icinga?
If you’re looking at a status grid, then you’ll still get the usual red,
yellow, green squares, but in downtime the colours are paler.
If you’re using alert notifications, then you shouldn’t be getting these at all
during downtime - something’s wrong with the configuration if you are.
Or do you have any other ideas how to create an availability report where
the downtimes are visible?
Create the report based on notifications - these can include the start & stop
of downtime periods as well as “real” alerts outside of downtime.
Remember you can write your own notification scripts, to do anything you like
with the information - you don’t have to just accept the standard basic
scripts which are designed to send emails.