Icinga2 - Change state when commands timeout

Hello everyone,

I am using Icinga2 in a cluster setup with 2500 services for 160 hosts.

When a service is in timeout, the state is always in unknown. I would like to change this state for critical.

Do you know if it’s possible to update this config ? (for example in icinga2.conf ?)

Thank you ! :slight_smile:

No one ? I tried to find something in the documentation

I believe this is not possible.

The reason is that when a service check times out, you have no idea what the
result would have been if you had got a response, therefore the status is
“unknown”.

Status “critical” means “we know what the result is and it’s not good”.

I can only suggest that you ensure your alerting and notification systems treat
status=unknown in the same way as status=critical.

If you want status=unknown to be the same red colour as status=critical on the
service check grid, you can adjust these colour to your heart’s content by
creating your own theme for Icingaweb2:

mkdir /usr/share/icingaweb2/modules/mymodule
cd /usr/share/icingaweb2/modules/mymodule
mkdir -p public/css/themes


tells you more about how to define the colours.

Regards,

Antony.