Page 2 of 2

Re: Extend service_check_timeout

Posted: Wed Jan 16, 2019 5:22 pm
by scottwilkerson
chris1337c wrote:When it time's out, it retries I believe 3 times. Is this specified in the main nagios.cfg or is there a service.cfg file somewhere that houses this, I have scrolled through the config a few times and am not seeing this setting. I know exactly what it does as I have seen it on the GUI.
This is what max_check_attempts on the service config determines.

If you set this to 6 it would retry 6 times before sending a notification

Code: Select all

max_check_attempts       6
here's an example

Code: Select all

define service {
    host_name                192.168.5.182
    service_description      / Disk Usage
    use                      xiwizard_linuxsnmp_storage
    check_command            check_xi_service_snmp_linux_storage! -C public --v2c -m "^/$" -w 80 -c 95 -f
    max_check_attempts       6
    check_interval           5
    retry_interval           1
    check_period             xi_timeperiod_24x7
    notification_interval    60
    notification_period      xi_timeperiod_24x7
    _xiwizard                linux_snmp
    register                 1
}

Re: Extend service_check_timeout

Posted: Thu Jan 17, 2019 10:15 am
by chris1337c
Gotcha, I have to find the global health one then. I haven't found the service config yet. I will keep digging thank you again Scott.

Re: Extend service_check_timeout

Posted: Thu Jan 17, 2019 11:05 am
by scottwilkerson
chris1337c wrote:Gotcha, I have to find the global health one then. I haven't found the service config yet. I will keep digging thank you again Scott.
Good luck

Re: Extend service_check_timeout

Posted: Fri Jan 18, 2019 2:24 pm
by chris1337c
It ended up being in the templates.cfg

Re: Extend service_check_timeout

Posted: Fri Jan 18, 2019 2:35 pm
by scottwilkerson
chris1337c wrote:It ended up being in the templates.cfg
Great! Locking thread