NSClient++ Help (#1) - External Scripts (#171) - Message List

External Scripts

Hopefully a simple one.....

Can anyone tell me the correct command to use in Nagios when using the CheckExternalScripts module?

For instance:

define command {

command_name What goes here? command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c What goes here?

I can't see it documented anywhere.

  • Message #475

    it depends a bit, read up on how NRPE works for nagios. Since this is a plugin for nagios (and other systems) I tend to ignore nagios configuration mainly.

    But on the NSCLient++ side:

    [modules]
    NRPEListsner.dll
    CheckExternalScripts.dll
    ...
    [External Scripts]
    check_es_long=scripts\long.bat
    

    means you run:

    check_nrpe ... -c check_es_long
    

    or possibly if you configure arguments:

    check_nrpe ... -c check_es_long -a my arg1 arg2 and many many more...
    

    Hope this helps, there is a lot of documenation for how to configure NRPE for nagios (which is what you are looking for)

    Michael Medin

    • Message #476

      Thanks, that clarifies what I suspected.

Subscriptions