Page 1 of 1

check nrpe (sometimes)timeout

Posted: Mon May 23, 2016 4:34 am
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.

Re: check nrpe (sometimes)timeout

Posted: Mon May 23, 2016 10:51 am
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

Re: check nrpe (sometimes)timeout

Posted: Tue May 24, 2016 1:38 am
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

Re: check nrpe (sometimes)timeout

Posted: Tue May 24, 2016 1:49 am
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

Re: check nrpe (sometimes)timeout

Posted: Tue May 24, 2016 8:55 am
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!

Re: check nrpe (sometimes)timeout

Posted: Tue May 24, 2016 10:31 am
by ischwartz
Glad we could help, closing topic.