Run as services under windows 2000 Server SP4

Forums NSClient++ support Run as services under windows 2000 Server SP4

This topic contains 9 replies, has 2 voices, and was last updated by  Michael Medin 5 years, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1517

    I can’t start NsClient++ as Service under Windows 2000 Server. But it works with the debug modus.

    
    C:\Program Files\NSClient++>nsclient++ /start
    Starting NSClientpp.............................................................
    ................................................................................
    ..........................................................
    

    nsclient++.exe is shown in the task manager. But is not listening at port 5666
    And under services.msc the services is still starting…

    The same config works with Windows XP.
    Any idea? Thanks for help.

    The Config

    
    [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
    

    Log

    
    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
    .
    
    #7086

    Michael Medin
    Keymaster

    Strange…

    there is nothing wrong with the config (it works here) so it looks good.

    You can try downloading DebugView from http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx it will show you “logging” from NSClient++.

    Enable “Capture Global Events” on some systems where UAC does not give you other process messages.

    The output might give you some insight into what is amiss…
    But it is a strange error…

    // Michael Medin

    #7089

    Thanks for help.
    That’s the output from DebugView:
    {{{
    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
    }}}

    Regards Berni

    #7095

    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.

    Anyways, I am at a conference now so expect a fix early next week.

    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…

    // Michael Medin

    #7099

    The DebugView log was from the w2k server.

    #7100

    Michael Medin
    Keymaster

    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…

    // MickeM

    #7103

    I think you are right. Version 0.3.3 works fine. (Why I haven’t tested it on w2k?)
    Thanks for your competent help.

    #7105

    Michael Medin
    Keymaster

    This issue has (I hope) been resolved in the latest RC (ie RC-4) please try it and let me know it is resolved.

    // MickeM

    #7107

    Yes, it works. Thanks

    #7108

    Michael Medin
    Keymaster

    oki, good stuff…
    and thank you!

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.