Page 1 of 2

Change default time for check_nrpe

Posted: Wed Oct 03, 2012 10:57 am
by quental
NAgiosXI
Cento 6.1 64 bits

hello,
I have a problem with nrpe check against a Windows machine:

If I run the command from the command line
. / check_nrpe-H $ HOST-p 5666-v-l SERVICESTATE service1-t 100

I returned a correct result.

The same, as implemented in the GUI interface nagiosXI, assigning a command and service to the host, and the console returns me:

"Error: service checkqued timeout".

The service implemented by web interface by default comes with a time of 60
How I can change this default time?

Greetings.

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 11:12 am
by lmiltchev
You can try modifying the NSC.ini file on your Windows box (the "NRPE" section) by increasing the default timeout, for example:

Code: Select all

command_timeout=120
Then, restart the NSClient++ service.

Hope this helps.

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 12:08 pm
by quental
hello,

I enabled command_timeout = 200 in nsc.ini , I restarted the service and the same problem continues.

any suggestions?

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 12:57 pm
by slansing
Can you post the command definition you are using in the Nagios Web Interface? Located in the Core Config Manger under Commands.

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 1:03 pm
by lmiltchev
Can you post the nsclient.log?

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 1:12 pm
by quental
hello,
the command:

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 1:16 pm
by quental
Hi,
nsclient.log and command

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 1:20 pm
by quental
Hi,
Sorry, the command I use.

Re: Change default time for check_nrpe

Posted: Wed Oct 03, 2012 2:12 pm
by lmiltchev
Is someone else using the same port? Perhaps another installation/instance of nsclient++? Can you open a DOS Command Prompt window, run the following commands, and show the output:

Code: Select all

tasklist | find /i "NSClient++"
netstat -an | find /i "12489"
netstat -an | find /i "5666"

Re: Change default time for check_nrpe

Posted: Thu Oct 04, 2012 7:49 am
by quental
Hi,
here is the result of the commands:

C:\Documents and Settings>tasklist | find /i "NSClient++"
nsclient++.exe 3276 Console 0 15.136 K



C:\Documents and Settings>netstat -an | find /i "12489"
TCP 0.0.0.0:12489 0.0.0.0:0 LISTENING
TCP 10.4.1.208:12489 10.4.1.87:40222 TIME_WAIT
TCP 10.4.1.208:12489 10.4.235.101:48848 TIME_WAIT



C:\Documents and Settings>netstat -an | find /i "5666"
TCP 0.0.0.0:5666 0.0.0.0:0 LISTENING