NSClient++ Help (#1) - ExternalCommands?: failed to create process (#428) - Message List
Hi, first, thanks for the great job on nsclient.
I'd like to use script_dir to use any script on c:\nsclient\scripts, without having to specify each one in nsc.ini.
So, I've enabled script_dir=.\scripts\*.bat in the External Script section.
Here is what I get :
check_nrpe -H 192.168.1.51 -c ok.bat ExternalCommands: failed to create process ( ): 2: The system cannot find the file specified.
What is strange, is that if I try to use a script that doesn't exist at all, here is what I get :
nagios:~# /usr/lib/nagios/plugins/check_nrpe -H 192.168.1.51 -c ok2.bat UNKNOWN: No handler for that command
So it seems that nsclient can find "ok.bat", but I don't understand why it failed with "cannot find the file specified".
If I put "check_es_ok=scripts\ok.bat" in the External Scripts section, it works good :
nagios:~# /usr/lib/nagios/plugins/check_nrpe -H 192.168.1.51 -c check_es_ok OK: Everything is going to be fine a
Thanks for any idea.
IIRC I fixed a bug with that recently...
Michael Medinmickem08/03/09 10:21:27 (4 years ago)
Here is the version : (0.3.6.818 2009-06-14)nschmitz08/03/09 18:44:17 (4 years ago)