Change default time for check_nrpe
Change default time for check_nrpe
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.
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
You can try modifying the NSC.ini file on your Windows box (the "NRPE" section) by increasing the default timeout, for example:
Then, restart the NSClient++ service.
Hope this helps.
Code: Select all
command_timeout=120Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Change default time for check_nrpe
hello,
I enabled command_timeout = 200 in nsc.ini , I restarted the service and the same problem continues.
any suggestions?
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
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
Can you post the nsclient.log?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Change default time for check_nrpe
hello,
the command:
the command:
Re: Change default time for check_nrpe
Hi,
nsclient.log and command
nsclient.log and command
You do not have the required permissions to view the files attached to this post.
Re: Change default time for check_nrpe
Hi,
Sorry, the command I use.
Sorry, the command I use.
You do not have the required permissions to view the files attached to this post.
Re: Change default time for check_nrpe
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!
Re: Change default time for check_nrpe
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
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