NSClient++ Help (#1) - ExternalCommands?: failed to create process (#428) - Message List
ExternalCommands?: failed to create process
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.
nschmitz
08/02/09 02:12:43 (4 years ago)








