How do i change the default timeout for check_nrpe -t 30

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

How do i change the default timeout for check_nrpe -t 30

Post 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.
You do not have the required permissions to view the files attached to this post.
bolson

Re: How do i change the default timeout for check_nrpe -t 30

Post 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!
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How do i change the default timeout for check_nrpe -t 30

Post 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?
You do not have the required permissions to view the files attached to this post.
bolson

Re: How do i change the default timeout for check_nrpe -t 30

Post 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.
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How do i change the default timeout for check_nrpe -t 30

Post by lee.krause »

It's a custom bash script.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do i change the default timeout for check_nrpe -t 30

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How do i change the default timeout for check_nrpe -t 30

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do i change the default timeout for check_nrpe -t 30

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked