Hi,
According to the documentation the fields check_interval and retry_interval are optional. But what are the default values of these if not set?
I have checked the source code and found what I believe is the default value for check_interval: 5 minutes. Is that correct?
But what about retry_interval? I haven't been able to find that information.
Default values for check_interval and retry_interval
-
- Posts: 3
- Joined: Tue Aug 18, 2020 2:46 am
-
- Posts: 198
- Joined: Wed Aug 23, 2023 11:29 am
Re: Default values for check_interval and retry_interval
Hi @kallekutta,
The values for these will either be set by a template the particular host/service is using or directly by the host/service. As far as I know, most templates do indeed use the values of 5 for check_interval and 1 for retry_interval. If they are somehow not set by anything, they will default to 5 and 1, respectively. The unit of time they use is defined by the interval_length which is, by default, set to 60 seconds so the values for check_interval and retry_interval will be in terms of minutes.
Let us know if you need anything else.
Thank you!
The values for these will either be set by a template the particular host/service is using or directly by the host/service. As far as I know, most templates do indeed use the values of 5 for check_interval and 1 for retry_interval. If they are somehow not set by anything, they will default to 5 and 1, respectively. The unit of time they use is defined by the interval_length which is, by default, set to 60 seconds so the values for check_interval and retry_interval will be in terms of minutes.
Let us know if you need anything else.
Thank you!
-
- Posts: 3
- Joined: Tue Aug 18, 2020 2:46 am
Re: Default values for check_interval and retry_interval
Hi @gwesterman
Thank you very much for this information!
This could be useful to include in the documentation. Is it open source? If so I could create a pull request with this added information.
Thank you very much for this information!
This could be useful to include in the documentation. Is it open source? If so I could create a pull request with this added information.
-
- Posts: 198
- Joined: Wed Aug 23, 2023 11:29 am
Re: Default values for check_interval and retry_interval
Hi @kallekutta,
The code for Nagios Core is open source but our documentation is separate. We will take your suggestion into consideration. For future reference, these values are defined in nagioscore/xodtemplate.c.
The code for Nagios Core is open source but our documentation is separate. We will take your suggestion into consideration. For future reference, these values are defined in nagioscore/xodtemplate.c.
-
- Posts: 3
- Joined: Tue Aug 18, 2020 2:46 am
Re: Default values for check_interval and retry_interval
Hi @gwesterman
I understand, thank you. Now I know the default values and this topic can be closed. Thanks for the help!
Nagios is the best!
I understand, thank you. Now I know the default values and this topic can be closed. Thanks for the help!
Nagios is the best!
-
- Posts: 198
- Joined: Wed Aug 23, 2023 11:29 am
Re: Default values for check_interval and retry_interval
Thank you for the suggestion! Glad I could help.