thanks for your answer.
the max_check_attempts defines after how many check attempts a new hard state is reached.
I would like to setup for e.g. that it should be checked 5 times before it enters in the soft state.
The point is that I use a shell plugin, I wrote myself, to check whether updates are available for the clients. The updates are carried out with unattended upgrades. Unattended upgrades carries out the updates a little delayed and as a result I have warnings in Icininga in the soft state that I do not want. Only when the update e.g. after a day it was not installed I want a warning in Icinga.
It’s all about that no unnecessary update warnings are displayed in Icinga.
If that does not work, that the soft state can be delayed, there is another possibility that warnings for existing updates for the clients only e.g. be displayed after a day?