[NSClient++] Topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/topic/242 <p> Run as services under windows 2000 Server SP4 </p> en-us NSClient++ /trac/nswide.png http://nsclient.org/nscp/discussion/topic/242 Trac 1.0beta1 - DiscussionPlugin berni Wed, 10 Sep 2008 15:52:20 GMT Topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/topic/242#topic http://nsclient.org/nscp/discussion/topic/242#topic <p> I can't start <a class="missing wiki">NsClient?</a>++ as Service under Windows 2000 Server. But it works with the debug modus. </p> <pre class="wiki">C:\Program Files\NSClient++&gt;nsclient++ /start Starting NSClientpp............................................................. ................................................................................ .......................................................... </pre><p> nsclient++.exe is shown in the task manager. But is not listening at port 5666 And under services.msc the services is still starting... </p> <p> The same config works with Windows XP. Any idea? Thanks for help. </p> <p> The Config </p> <pre class="wiki">[modules] NRPEListener.dll [Settings] allowed_hosts=server use_file=1 [NRPE] port=5666 command_timeout=30 allowed_hosts=server script_dir=scripts\ socket_timeout=30 [External Script] command_timeout=30 [External Scripts] check_window_vbs=cscript.exe //T:30 //NOLogo scripts\check_window.vbs [NRPE Handlers] check_window_vbs=cscript.exe //T:30 //NOLogo scripts\check_window.vbs [NRPE Client Handlers] check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments </pre><p> Log </p> <pre class="wiki">C:\Program Files\NSClient++&gt;nsclient++ /test Launching test mode - client mode l \NSClient++.cpp(366) Attempting to start NSCLient++ - 0.3.4.24 RC 2008-09-09 d \NSClient++.cpp(762) Loading plugin: NRPE server... l \NSClient++.cpp(472) NSCLient++ - 0.3.4.24 RC 2008-09-09 Started! d \Socket.h(637) Bound to: 0.0.0.0:5666 l \NSClient++.cpp(278) Using settings from: INI-file l \NSClient++.cpp(279) Enter command to inject or exit to terminate... d \NSClient++.cpp(890) Injecting: check_Window_vbs: d \NSClient++.cpp(926) Injected Result: OK 'OK' d \NSClient++.cpp(927) Injected Performance Result: '' d \NSClient++.cpp(890) Injecting: check_Window_vbs: d \NSClient++.cpp(926) Injected Result: OK 'OK' d \NSClient++.cpp(927) Injected Performance Result: '' d \NSClient++.cpp(890) Injecting: check_Window_vbs: d \NSClient++.cpp(926) Injected Result: OK 'OK' d \NSClient++.cpp(927) Injected Performance Result: '' d \NSClient++.cpp(890) Injecting: check_Window_vbs: d \NSClient++.cpp(926) Injected Result: OK 'OK' d \NSClient++.cpp(927) Injected Performance Result: '' exit Exiting... l \NSClient++.cpp(526) Attempting to stop NSCLient++ - 0.3.4.24 RC 2008-09-09 d \NSClient++.cpp(529) Stopping: NON Message Handling Plugins d \NSClient++.cpp(726) Unloading plugin: NRPEListener... d \Socket.h(671) Socket listener is preparing to shutdown... e \NRPEListener.cpp(150) Exception caught: Error: SSL Context already initalized . </pre> Topic mickem Mon, 15 Sep 2008 12:01:00 GMT Reply #727 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/727#message727 http://nsclient.org/nscp/discussion/message/727#message727 <p> oki, good stuff... and thank you! </p> Message berni Mon, 15 Sep 2008 11:44:37 GMT Reply #726 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/726#message726 http://nsclient.org/nscp/discussion/message/726#message726 <p> Yes, it works. Thanks </p> Message mickem Sun, 14 Sep 2008 21:43:46 GMT Reply #724 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/724#message724 http://nsclient.org/nscp/discussion/message/724#message724 <p> This issue has (I hope) been resolved in the latest RC (ie RC-4) please try it and let me know it is resolved. </p> <p> <em> MickeM </em></p> Message berni Fri, 12 Sep 2008 06:36:48 GMT Reply #722 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/722#message722 http://nsclient.org/nscp/discussion/message/722#message722 <p> I think you are right. Version 0.3.3 works fine. (Why I haven't tested it on w2k?) Thanks for your competent help. </p> Message mickem Thu, 11 Sep 2008 16:22:44 GMT Reply #719 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/719#message719 http://nsclient.org/nscp/discussion/message/719#message719 <p> Aha, then that is the problem... I must have broken the "is this xp" code when I fixed it for w2k8... ahh, well... should be easy to fix when I get back... </p> <p> <em> MickeM </em></p> Message berni Thu, 11 Sep 2008 14:53:13 GMT Reply #718 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/718#message718 http://nsclient.org/nscp/discussion/message/718#message718 <p> The <a class="missing wiki">DebugView?</a> log was from the w2k server. </p> Message anonymous Thu, 11 Sep 2008 11:38:40 GMT Reply #714 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/714#message714 http://nsclient.org/nscp/discussion/message/714#message714 <p> Humm, oki... now I know where to look. I am guessing (hoping?) this is from the XP machine a w2k box should not say 81.. I shall add more info about detection I think. </p> <p> Anyways, I am at a conference now so expect a fix early next week. </p> <p> I noticed some issues myself when I tried your file with "very few plugins" loading but that was on "stop so I shall try to fix them as well. Fell free to open a ticket on thi issue to make sure I dont orget it... </p> <p> <em> Michael Medin </em></p> Message berni Thu, 11 Sep 2008 07:58:22 GMT Reply #708 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/708#message708 http://nsclient.org/nscp/discussion/message/708#message708 <p> Thanks for help. That's the output from <a class="missing wiki">DebugView?</a>: </p> <pre class="wiki">00000000 0.00000000 [13712] service_main launcing... 00000001 0.00043482 [13712] Attempting to start service with: 81 00000002 70.04919434 [15836] ################################ svc_exit 00000003 70.06320190 [15836] ################################ svc_exit </pre><p> Regards Berni </p> Message mickem Wed, 10 Sep 2008 17:38:59 GMT Reply #705 to topic #242 - Run as services under windows 2000 Server SP4 http://nsclient.org/nscp/discussion/message/705#message705 http://nsclient.org/nscp/discussion/message/705#message705 <p> Strange... </p> <p> there is nothing wrong with the config (it works here) so it looks good. </p> <p> You can try downloading <a class="missing wiki">DebugView?</a> from <a class="ext-link" href="http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx"><span class="icon">‚Äč</span>http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx</a> it will show you "logging" from NSClient++. </p> <p> Enable "Capture Global Events" on some systems where UAC does not give you other process messages. </p> <p> The output might give you some insight into what is amiss... But it is a strange error... </p> <p> <em> Michael Medin </em></p> Message