NSClient++ Help (#1) - NSClient++ doesn't restart properly (#70) - Message List
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
mickem12/12/07 16:35:28 (4 years ago)-
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'.
nagiosadmin12/13/07 09:49:25 (4 years ago)-
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
mickem12/13/07 09:56:14 (4 years ago)-
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?
nagiosadmin12/13/07 10:18:21 (4 years ago)-
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
mickem12/13/07 10:23:47 (4 years ago)-
Message #175
The "use_file=1" option is already present in the 0.2.5h.
I'll try with a more recent version...
nagiosadmin12/13/07 15:11:39 (4 years ago)-
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.
nagiosadmin12/19/07 10:26:29 (4 years ago)-
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
anonymous12/19/07 11:31:29 (4 years ago)-
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!
nagiosadmin12/19/07 11:40:40 (4 years ago)
-
-
-
-
-
-
-
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
st06/04/08 08:40:28 (4 years ago)-
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
mickem06/04/08 14:47:22 (4 years ago)
-
-
-







