NSClient++ Help (#1) - command_timeout directive does not appear to be working. (#655) - Message List
Client version: 0.3.6 I am using the registry not th ini file. The key is under software\nsclient++\NRPE\command_timeout as a REG_DWORD. After modifying the value I started and stopped the service but am still having the following returned to Nagios:
Status Information: Command (cmd /c echo c:scripts ewDiskSpace.ps1;exit $LASTEXITCODE Performance Data: powershell.exe -psconsolefile "E:\ExchangeProgram?\Bin\exshell.psc1" -command -) didn't terminate within the timeout period (60s)!
Thoughts?
-
Message #1952
Well...
If you use the ExternalScripts module to run your script (which you should) that parameter is not used (instead the on under external scripts is used).
There is (unfortunately) no timeout for internal commands (such as CheckCPU)
Michael Medin
mickem09/01/10 09:22:11 (18 months ago)-
Message #1958
The checks in question are defined under "NRPE Handlers". Why is the ExternalScripts module preferred over NRPE? To clarify here is my config, what i care about is check_exchange_replication:
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++]
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\External Alias]
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\External Script]
"command_timeout"=dword:0000012c[[BR]][HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\modules]
"CheckDisk.dll"=""
"CheckEventLog.dll"=""
"CheckHelpers.dll"=""
"CheckSystem.dll"=""
"FileLogger.dll"=""
"NRPEListener.dll"=""
"NSClientListener.dll"=""
"RemoteConfiguration.dll"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NRPE]
"port"=dword:00001622[[BR]] "use_ssl"=dword:00000001[[BR]] "command_timeout"=dword:0000012c[[BR]][HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NRPE Client Handlers]
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NRPE Handlers]
"check_exchange_disk"="cscript.exe T:30 NoLogo c:
scripts
DriveQuery?.vbs"
"check_exchange_replication"="cmd /c echo c:
scripts
check_exchange_replication.ps1;exit $LASTEXITCODE | powershell.exe -psconsolefile \"E:
ExchangeProgram?
Bin
exshell.psc1\" -command -"
"check_mount_status"="cmd /c echo c:
scripts
check_mount_status.ps1;exit $LASTEXITCODE | powershell.exe -psconsolefile \"E:
ExchangeProgram?
Bin
exshell.psc1\" -command -"
[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NSClient]
"allowed_hosts"="10.0.100.20,192.168.10.53"
"port"=dword:000030c9[[BR]][HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\Settings]
"use_file"=dword:00000000[[BR]] "use_reg"=dword:00000001[[BR]] "allowed_hosts"="10.0.100.20,192.168.10.53"
rwood4209/03/10 17:29:11 (17 months ago)
-







