Page 1 of 1
How do i change the default timeout for check_nrpe -t 30
Posted: Thu Feb 22, 2018 12:04 pm
by lee.krause
How/where do I change this?
check_nrpe.PNG
I have 1 check script that I want to have a longer timeout set for.
I would like to change this to 60 seconds.
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Thu Feb 22, 2018 12:42 pm
by bolson
Because the command being executed by Nagios XI is check_nrpe, rather than the service check itself, the timeout cannot be overridden on a per check basis. The timeout value has no bearing on how long the check will take, only on how long check_nrpe will wait for a return value before entering a failed state. For this reason, the recommendation would be to raise the timeout value for check_nrpe to -t 60
Hope this helps.
Thank you!
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Thu Feb 22, 2018 1:00 pm
by lee.krause
So here's my current check. I need the nrpe agent to run the check_db_state script.
check_db.PNG
How do I need to set this up?
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Thu Feb 22, 2018 2:04 pm
by bolson
Is check_db_state a custom plugin of yours? If not, where did you find it? I don't see it on the Nagios Exchange.
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Thu Feb 22, 2018 6:06 pm
by lee.krause
It's a custom bash script.
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Fri Feb 23, 2018 10:25 am
by lmiltchev
example01.PNG
So, in order to change the check_nrpe timeout from 30 to 60, you need to go to the Core Config Manager > Commands, type "check_nrpe" in the search bar, and hit "Enter". Find the "check_nrpe" command, click on "Edit". Change "30" to "60", click "Save", and apply configuration.
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Fri Feb 23, 2018 12:48 pm
by lee.krause
That was exactly what I needed. I copied the check_nrpe command to check_nrpe_60 and changed the timeout.
Worked just how I needed it to.
check_db2.PNG
Re: How do i change the default timeout for check_nrpe -t 30
Posted: Fri Feb 23, 2018 12:53 pm
by lmiltchev
I am glad I could help!
I will be closing this topic now. If you have any more questions/issues, please start a new thread. Thanks!