Increase max_check_attemps

Hi Ali,
welcome to the community :slight_smile:

I have edited your post for better readability of the config snippets.

Please use the code formatting (backticks ```) in the future, so that it is easier for people to read :slight_smile:
You find a overview of the editor options here:

back to topic :slight_smile:

And that is correct.
You changed the max_check_attempts for the host object. If you click on the hostname in Icinga Web 2 you will see that they will have changed to 10.
If you want to raise the max_check_attempts of the ping4 service, you will have to edit the service template/apply rule.
I suspect that the ping4 service comes from the example configuration under /etc/icinga2/conf.d/

Be aware that changing the config of the ping4 service will probably change all ping4 services, as it is just an example service check that is distributed to every host object.
I personally don’t use a ping service check generally, just in small doses :wink:

1 Like