check nrpe (sometimes)timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
martijnmoi
Posts: 17
Joined: Mon Feb 22, 2016 8:23 am

check nrpe (sometimes)timeout

Post by martijnmoi »

Goodmorning,

i've got this quick question from a problem i can't figure out..

i am having this troubles with the MBhealth exchange plugin (powershell script on NSClient)

i keep getting the notification: NRPE timeout ( 60 seconds). i know sometimes the server is under heavy load so the command can not always be run within the 60 seconds so i wanted to give it a try to put it on a 90 second timeout, but i keep getting the notification: "NRPE 60 second timeout".

here is my nagios command: ( $ARG1$ = 'CEM', $ARG2$ = empty.)
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 90 -c $ARG1$ $ARG2$
and here is my nsclient.ini file from the exchange server ( i hope it is allowed to post it this way) ( i added it to attachments to!)
Everywhere i could think off, i changed the timeout to a higher schedule. (and yes i restarted the nsclient services a several times already)


is there anyone who has an idea where else to look?

Thanks in advance.
Martijn.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check nrpe (sometimes)timeout

Post by rkennedy »

There are quite a few places it needs to be changed. Take a look at this document, http://docs.nsclient.org/faq/#timeout-issues -- it does a great job at showing you exactly what's needed.

Judging by a quick look at your configuration, it's under the NRPE section that you're missing the timeout = 90 part.

For example -

Code: Select all

[settings/NPRE/server]
timeout = 90
Former Nagios Employee
martijnmoi
Posts: 17
Joined: Mon Feb 22, 2016 8:23 am

Re: check nrpe (sometimes)timeout

Post by martijnmoi »

Thank you,

i've looked into the nsclient Docs and i added the timeout at settings/NRPE/Server

i hope this works. i will let you know in a few days (testfase)


Thanks again,
Martijn
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check nrpe (sometimes)timeout

Post by Box293 »

I think you may have missed the point that article was trying to get across.

The first thing to timeout will be the nagios global service check timeout.

CCM > Advanced > Nagios Core Main Config
service_check_timeout=100
Click Save

Then the check_nrpe command needs to have it's timeout setting changed.

CCM > Commands
Edit check_nrpe command
Change -t 30 to -t 95
Click Save

Now Apply Config
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
martijnmoi
Posts: 17
Joined: Mon Feb 22, 2016 8:23 am

Re: check nrpe (sometimes)timeout

Post by martijnmoi »

i indeed missed that point.

i changed the service check time-out too.


the -t i already changed to the 90 seconds.


Thank you for your help!
ischwartz

Re: check nrpe (sometimes)timeout

Post by ischwartz »

Glad we could help, closing topic.
Locked