NSClient++ Help (#1) - boot.ini (#839) - Message List
Hi All,
I'm trying to test version 0.4. I've gotten stuck at the boot.ini file. The install does not include a boot.ini file and I can't find any documentation on the website to explain what it is or how it works. When I try to run nscp.exe it starts but I can't talk to it from Nagios, it does not seem to recognize my 0.3.x config file. Is there documentation anywhere that gives the syntax of the boot.ini file and any other parts needed to get started (I've read through what I found at http://nsclient.org/nscp/wiki/doc/usage/doc/guides/nscp/getting_started/040)?
Thanks,
-greg
-
Message #2255
The installer should create it actually...
But simplest way is to just copy the old nsc.ini if the boot.ini is not found it will (IIRC) attempt to load nsc.ini and nsclient.ini (new format).
Another option is to do a migrate which will also IIRC create the file...
Michael Medin
mickem08/09/11 21:40:28 (23 months ago)-
Message #2258
Hi,
Thanks for the quick response.
I used the MSI installer with version 0.4.83, I see no boot.ini. Does it auto generate during the install? I copied our 3.x nsc.ini file to the install directory and after restarting nscp I still cannot connect. I've enabled logging in the nsc.ini file and after restarting the service I get entries like those below, there are lot more of the unknown entries in the actual log file. Any ideas?
2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown:..\..\..\trunk\service\NSClient++.cpp:706: Exception raised: 'Could not load library: 126: The specified module could not be found. : C:\Program Files\nscp\\modules\NRPEServer.dll' in module: NRPEServer 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown:..\..\..\trunk\service\NSClient++.cpp:706: Exception raised: 'Could not load library: 126: The specified module could not be found. : C:\Program Files\nscp\\modules\NSClientServer.dll' in module: NSClientServer 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown:..\..\..\trunk\service\NSClient++.cpp:706: Exception raised: 'Could not load library: 126: The specified module could not be found. : C:\Program Files\nscp\\modules\SysTray.dll' in module: SysTray 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0: 2011-Aug-10 15:57:33: unknown::0:
gjfrater08/11/11 01:10:00 (23 months ago)-
Message #2259
Humm... I think maybe you need to do custom install for the boot.ini to be properly generated... but I am not sure about this.
Could you try run:
nscp --test
As well as verify that the file "C:\Program Files\nscp
modules\NSClientServer.dll" exists...Michael Medin
mickem08/11/11 06:21:30 (23 months ago)-
Message #2261
I though I chose custom install when I did it but I can't say that for sure. The NSClientServer.dll does NOT exist.
The nscp --test results: C:\Program Files>nscp\nscp.exe --test l ..\..\..\trunk\service\NSClient++.cpp:553 Attempting to start d ttings_manager\settings_manager_impl.cpp:156 No entries found looking in (adding default): C:/Program Files/nscp//boot.ini d ttings_manager\settings_manager_impl.cpp:165 Boot order: old://${exe-path}/nsc.ini, ini://${shared-path}/nsclient.ini d ttings_manager\settings_manager_impl.cpp:168 Activating: old://${exe-path}/nsc.ini d ttings_manager\settings_manager_impl.cpp:68 Creating instance for: old://${exe-path}//nsc.ini d \trunk\include\settings/settings_old.hpp:156 Loading OLD: old://${exe-path}/nsc.ini for old://${exe-path}/nsc.ini d \trunk\include\settings/settings_old.hpp:42 Reading MAP file: C:/Program Files/nscp//old-settings.map d \trunk\include\settings/settings_old.hpp:438 Reading old settings from: C:/Program Files/nscp//nsc.ini d ttings_manager\settings_manager_impl.cpp:68 Creating instance for: old://${exe-path}//localhost.ini d \trunk\include\settings/settings_old.hpp:156 Loading OLD: old://${exe-path}/localhost.ini for old://${exe-path}/localhost.ini d \trunk\include\settings/settings_old.hpp:42 Reading MAP file: C:/Program Files/nscp//old-settings.map d \trunk\include\settings/settings_old.hpp:438 Reading old settings from: C:/Program Files/nscp//localhost.ini l ..\..\..\trunk\service\NSClient++.cpp:558 Booted settings subsystem... d ..\..\..\trunk\service\NSClient++.cpp:619 On crash: restart: NSClientpp d ..\..\..\trunk\service\NSClient++.cpp:631 Archiving crash dumps in: C:/Program Files/nscp//crash-dumps d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckDisk as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckEventLog as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckExternalScripts as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckHelpers as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckSystem as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: CheckWMI as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: FileLogger as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: NRPEServer as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: NSClientServer as d ..\..\..\trunk\service\NSClient++.cpp:410 Found: SysTray as d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckDisk.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckDisk.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckEventLog.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckEventLog.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckExternalScripts.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckExternalScripts.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckHelpers.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckHelpers.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckSystem.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckSystem.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: CheckWMI.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/CheckWMI.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: FileLogger.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/FileLogger.dll as ) d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: NRPEServer.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/NRPEServer.dll as ) e ..\..\..\trunk\service\NSClient++.cpp:706 Exception raised: 'Could not load library: 126: The specified module could not be found.: C:\Program Files\nscp\\modules\NRPEServer.dll' in module: NRPEServer d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: NSClientServer.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/NSClientServer.dll as ) e ..\..\..\trunk\service\NSClient++.cpp:706 Exception raised: 'Could not load library: 126: The specified module could not be found.: C:\Program Files\nscp\\modules\NSClientServer.dll' in module: NSClientServer d ..\..\..\trunk\service\NSClient++.cpp:702 Processing plugin: SysTray.dll as d ..\..\..\trunk\service\NSClient++.cpp:986 addPlugin(C:/Program Files/nscp//modules/SysTray.dll as ) e ..\..\..\trunk\service\NSClient++.cpp:706 Exception raised: 'Could not load library: 126: The specified module could not be found.: C:\Program Files\nscp\\modules\SysTray.dll' in module: SysTray d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: CheckDisk... d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: Event log Checker.... d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: Check External Scripts... d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: Helper function... d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: CheckSystem... d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: CheckWMI... d unk\modules\CheckSystem\PDHCollector.cpp:91 Loading counters... d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: cpu = \238(_total)\6 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit bytes = \4\26 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: memory commit limit = \4\30 d unk\modules\CheckSystem\PDHCollector.cpp:94 Loading counter: uptime = \2\674 d ..\..\..\trunk\service\NSClient++.cpp:962 Loading plugin: File logger... l \trunk\modules\FileLogger\FileLogger.cpp:167 Using logmask: d ..\..\..\trunk\service\NSClient++.cpp:727 NSClient++ - 0,4,0,83 2011-08-07 Started! l rce\nscp\trunk\service\simple_client.hpp:26 Enter command to inject or exit to terminate... NOT FOUND d ..\..\..\trunk\service\NSClient++.cpp:1106 Injecting: ... e ..\..\..\trunk\service\NSClient++.cpp:1132 No handler for command: avalible commands: commands {, check_ok, checkalwayscritical, checkalwaysok, checkalwayswarning, checkcounter, checkcpu, checkcritical, checkdrivesize, checkeventlog, checkfile2, checkfiles, checkfilesize, checkmem, checkmultip le, checkok, checkprocstate, checkservicestate, checksingleregentry, checkuptime, checkversion, checkwarning, checkwmi, checkwmivalue, listcounterinstances}, plugins {, 0, 1, 2, 3, 4, 5} e ..\..\..\trunk\service\NSClient++.cpp:1071 No data retutned from command l rce\nscp\trunk\service\simple_client.hpp:12 WARNING:gjfrater08/11/11 22:43:43 (23 months ago)-
Message #2262
A quick update in the module subfolder I have (after doing custom install) the following:
CheckDisk.dll CheckEventLog.dll CheckExternalScripts.dll CheckHelpers.dll CheckNSCP.dll CheckSystem.dll CheckTaskSched.dll CheckTaskSched2.dll CheckWMI.dll FileLogger.dll LUAScript.dll NRPEClient.dll NRPEListener.dll NSCAAgent.dll NSClientListener.dll PythonScript.dll Scheduler.dll
But I noticed that there was an error reading the map file during install so it failed something I had though I had fixed but aparently not so I shall investigate... But that is why you dont get boot.ini during install...
Michael Medin
mickem08/12/11 08:42:45 (23 months ago)
-
-
-
-








