Change default time for check_nrpe

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Change default time for check_nrpe

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Change default time for check_nrpe

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Change default time for check_nrpe

Post by quental »

hello,

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

any suggestions?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Change default time for check_nrpe

Post by slansing »

Can you post the command definition you are using in the Nagios Web Interface? Located in the Core Config Manger under Commands.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Change default time for check_nrpe

Post by lmiltchev »

Can you post the nsclient.log?
Be sure to check out our Knowledgebase for helpful articles and solutions!
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Change default time for check_nrpe

Post by quental »

hello,
the command:
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Change default time for check_nrpe

Post by quental »

Hi,
nsclient.log and command
You do not have the required permissions to view the files attached to this post.
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Change default time for check_nrpe

Post by quental »

Hi,
Sorry, the command I use.
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: Change default time for check_nrpe

Post 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"
Be sure to check out our Knowledgebase for helpful articles and solutions!
quental
Posts: 74
Joined: Tue Apr 17, 2012 5:12 am

Re: Change default time for check_nrpe

Post 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
Locked