Extend service_check_timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extend service_check_timeout

Post 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
}
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
chris1337c
Posts: 75
Joined: Wed Dec 26, 2018 2:31 pm

Re: Extend service_check_timeout

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extend service_check_timeout

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
chris1337c
Posts: 75
Joined: Wed Dec 26, 2018 2:31 pm

Re: Extend service_check_timeout

Post by chris1337c »

It ended up being in the templates.cfg
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extend service_check_timeout

Post by scottwilkerson »

chris1337c wrote:It ended up being in the templates.cfg
Great! Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked