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.

  • Message #1341

    Which version?

    IIRC I fixed a bug with that recently...

    Michael Medin

    • Message #1345

      Thanks,

      Here is the version : (0.3.6.818 2009-06-14)

      • Message #1409

        Hi, any update on this ?

        Thanks.

        • Message #1411

          Sorry, for the late reply.

          IIRC the command is called ok and not ok.bat (ie the extension is stripped).

          I shall invvestigate!

          Michael Medin

Subscriptions