NSClient++ Help (#1) - NSClient++ doesn't restart properly (#70) - Message List

NSClient++ doesn't restart properly

I use NSClient++ 0.2.5h2 on my Windows servers and it works fine but when a server reboots, NSClient++ seems to not start properly. Every services are in UNKNOWN " CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. ". Generally, a simple restart of the NSClientpp service is enough to solve the problem but it would be great if I wasn't obliged to do it manually!

Does someone has already had this problem please? Is it a bug of this version of NSClient++?

Thank you for your responses.

  • Message #170

    what does the "remote server logs" say? ie. enable log to file, and read nsc.log

    MickeM

    • Message #171

      Thank you for your answer.

      In the NSC.log file, after the reboot of the server, I have this type of errors :

      2007-12-12 17:56:42: debug:.\NSClient++.cpp:353: Injecting: T3check_physical_mem:
      2007-12-12 17:56:42: message:.\NSClient++.cpp:385: No handler for command: 'T3check_physical_mem'
      2007-12-12 17:56:42: message:\Source\nscplus\include\NSCHelper.cpp:181: No handler for command 'T3check_physical_mem'.
      2007-12-12 21:06:17: debug:.\NSClient++.cpp:353: Injecting: (EXcheck_cpu!95!99!1m!5m!15m:
      2007-12-12 21:06:17: message:.\NSClient++.cpp:385: No handler for command: '(EXcheck_cpu!95!99!1m!5m!15m'
      2007-12-12 21:06:17: message:\Source\nscplus\include\NSCHelper.cpp:181: No handler for command '(EXcheck_cpu!95!99!1m!5m!15m'.
      2007-12-12 21:08:16: debug:.\NSClient++.cpp:353: Injecting: ŠêN=check_drive!85!90!C:
      2007-12-12 21:08:16: message:.\NSClient++.cpp:385: No handler for command: 'ŠêN=check_drive!85!90!C'
      2007-12-12 21:08:16: message:\Source\nscplus\include\NSCHelper.cpp:181: No handler for command 'ŠêN=check_drive!85!90!C'.
      2007-12-12 21:13:16: debug:.\NSClient++.cpp:353: Injecting: õROfcheck_drive!85!90!C:
      2007-12-12 21:13:16: message:.\NSClient++.cpp:385: No handler for command: 'õROfcheck_drive!85!90!C'
      2007-12-12 21:13:16: message:\Source\nscplus\include\NSCHelper.cpp:181: No handler for command 'õROfcheck_drive!85!90!C'.
      
      • Message #172

        wait... do you use 0.2.5h? (why not upgrade to 0.3.0 a lot of things have been fixed in the latest version :)

        MickeM

        • Message #173

          When I started to install it was the latest version.

          Since I have a lot of servers I'd like to keep my configuration file. Will there be some incompatibilities (options, definitions of command, ...) if I change the version of the client with the same config file NSC.ini?

          • Message #174

            the only thing that may break is the "use_file=1" option. Don't recall from the top of my head in which version it was introduced but it has to be present in the .ini file or it wont read settings from there.

            Apart from that I don't recall there ever being any "breaking changes", I tend to just add new options.

            If you are going to roll out a new version and have non English servers you might wanna wait for the 0.3.1 version (out soon) as I have "fixed" (I hope) the localized PDH issues.

            MickeM

            • Message #175

              The "use_file=1" option is already present in the 0.2.5h.

              I'll try with a more recent version...

              • Message #179

                Hi!

                I've tried to replace my old NSClient-0.2.5h2 for the 0.3.0 but after a few manips, I can't uninstall the old client nor install the new one...

                I got this error : C:\Program Files\NSClient++-x64-0.3.0>"NSClient++.exe" /uninstall l \NSClient++.cpp(62) Service deinstallation failed; DeleteService? failed.

                I've tried going in the regedit to delete some keys concerning NSClientpp but I didn't managed to delete them...

                Could you help me to uninstall and delete everything to be able to reinstall the new client please?

                Thanks.

                • Message #180

                  /uninstall only removes the service (not the registry entries for the program it self).

                  Removing them are fairly simple with regedit (i shall probably have to add an option for removing them automatically).

                  All registry entires are found under: HKEY_LOCAL_MACHINE
                  SOFTWARE
                  NSClient++ So delete that node and all regentries are "gone".

                  Mickem

                  • Message #181

                    Actually I've managed to uninstall it normally. The server has been rebooted for other reasons and after that I've found everything as it was before : client 0.2.5h2 installed and running (but always with that problem of services in UNKNOWN !!!). So I have uninstalled it and then I've installed 0.3.0.

                    But thanks anyway, it may help me for another time ;-)

                    Let's see if it's better with 0.3.0!

                    • Message #187

                      I've tried the 0.3.0 on a few server and for the moment (despite some reboots of those servers) I haven't met with that problem. It was probably a bug of the old version but 0.3.0 seems to fix it!

                      Thanks!

      • Message #458

        Hi.. I'm working on all my windows systems now and am getting this error trying to execute remote scripts. This happens on all systems, vb, cmd, bat files, etc... Can anyone help. I have the most recent version of NSC++

        2008-06-03 23:36:33: message:.\NSClient++.cpp:551: No handler for command: 'check_test' 2008-06-03 23:36:33: message:..\..\include\NSCHelper.cpp:223: No handler for command 'check_test'.

        Thanks -st

        • Message #461

          my guess is you either don't have the module (CheckExternalScripts) registered or you have not added a definition for your check?

          [modules]
          CheckExternalScripts.dll
          [External Scripts]
          check_test=scripts\test.bat
          

          Michael Medin

Subscriptions