The description below uses the Icinga version 1.6.1.
Here are the steps.
- 1. Go to /usr/local/icinga/etc/objects/templates.cfg
- 2.Search for the template that you are working on. Say you are working on a template called name = linux-server
- 3.Change the parameter called “max_check_attempts” to 3 ( Here you want to change to 3 attempts, before email is sent. Default Value is 10 )
- 4. Restart the Icinga by running the command: /etc/init.d/icinga restart