[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-usNSClient++/trac/nswide.png
http://nsclient.org/nscp/discussion/topic/242
Trac 1.0beta1 - DiscussionPluginberniWed, 10 Sep 2008 15:52:20 GMTTopic #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++>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++>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>
TopicmickemMon, 15 Sep 2008 12:01:00 GMTReply #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>
MessageberniMon, 15 Sep 2008 11:44:37 GMTReply #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>
MessagemickemSun, 14 Sep 2008 21:43:46 GMTReply #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>
MessageberniFri, 12 Sep 2008 06:36:48 GMTReply #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>
MessagemickemThu, 11 Sep 2008 16:22:44 GMTReply #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>
MessageberniThu, 11 Sep 2008 14:53:13 GMTReply #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>
MessageanonymousThu, 11 Sep 2008 11:38:40 GMTReply #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>
MessageberniThu, 11 Sep 2008 07:58:22 GMTReply #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>
MessagemickemWed, 10 Sep 2008 17:38:59 GMTReply #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