Opened 5 years ago

Closed 4 years ago

#246 closed defect (fixed)

Port number for nsclient not read correctly from registry (x64)

Reported by: simen Owned by: mickem
Priority: 1 Milestone: 0.3.6
Component: Core Version: 0.3.5
Severity: Bugs Keywords:
Cc:

Description

I have migrated my configuration to the registry with RemoteConfiguration ini2reg. The port number for the NSClient module is saved as REG_DWORD. My configured value is 0x4e0 (1248):

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++]

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\Check System]
"CPUBufferSize"="1441m"

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\External Scripts]

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\log]
"date_mask"="%Y-%m-%d %H:%M:%S"
"debug"=dword:00000001
"file"="NSC.log"

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\modules]
"CheckDisk.dll"=""
"CheckSystem.dll"=""
"NRPEListener.dll"=""
"NSClientListener.dll"=""
"FileLogger.dll"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NRPE]
"use_ssl"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\NSClient]
"port"=dword:000004e0

[HKEY_LOCAL_MACHINE\SOFTWARE\NSClient++\Settings]
"allowed_hosts"="172.27.9.12/32"
"use_file"=dword:00000000
"use_reg"=dword:00000001

When I start NSClient++ /test i get:

Launching test mode - client mode
l \NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.1 2008-09-24
d \NSClient++.cpp(773) Loading plugin: CheckDisk...
d \NSClient++.cpp(773) Loading plugin: CheckSystem...
d \PDHCollector.cpp(66) Autodetected w2k or later, using w2k PDH counters.
d \NSClient++.cpp(773) Loading plugin: File logger...
d \PDHCollector.cpp(103) Using index to retrive counternames
l \FileLogger.cpp(93) Log path is: C:\Program Files (x86)\NSClient++\\NSC.log
d \NSClient++.cpp(773) Loading plugin: NRPE server...
d \NSClient++.cpp(773) Loading plugin: NSClient server...
d \Socket.h(637) Bound to: 0.0.0.0:5666
l \NSClient++.cpp(476) NSCLient++ - 0.3.5.1 2008-09-24 Started!
d \Socket.h(637) Bound to: 0.0.0.0:224
d \PDHCollector.cpp(123) Found countername: CPU:    \Processor(_total)\% Process
or Time
l \NSClient++.cpp(278) Using settings from: registry
d \PDHCollector.cpp(124) Found countername: UPTIME: \System\System Up Time
l \NSClient++.cpp(279) Enter command to inject or exit to terminate...
d \PDHCollector.cpp(125) Found countername: MCL:    \Memory\Commit Limit
d \PDHCollector.cpp(126) Found countername: MCB:    \Memory\Committed Bytes

224 is 1248 mod 256.

Change History (2)

comment:1 Changed 5 years ago by mickem

  • Owner changed from MickeM to mickem
  • Status changed from new to assigned

I have had a few reports of "this" and thought people were crazy (as I thought they meant the problem was in the .ini file...) I shall check this, though it is most likely fixed in the upcoming 0.4.x version...

MickeM

comment:2 Changed 4 years ago by mickem

  • Resolution set to fixed
  • Status changed from assigned to closed

Should be fixed in the next nightly...

Michael Medin

Note: See TracTickets for help on using tickets.