NSClient++ Help (#1) - External Scripts - No Handler problem ?? (#332) - Message List

External Scripts - No Handler problem ??

I have configured everything in the nagios server side and now im waiting to see a reply from the external script which i made inside the NSClient++. When ever the nagios make that call from the server side, in the NSC log it shows that in the message "No Handler for command TestOK" (TestOk? is the command that i made). And when i inject the command it shows just an output.

What is this handler thing? Is there a specific way to output the result on a external script??.

Thanx

  • Message #990

    To use external scripts you need a few things: 1, Load a module which can use ExternalScripts?:

    [Modules]
    CheckExternalScripts.dll
    

    Then you need a defenition to tie the script to a "NSClient++ command":

    [External Scripts]
    <nagios command>=scripts\<script name>
    

    Anf finally if you use "arguments" you might need these:

    [External Script]
    allow_arguments=1
    allow_nasty_meta_chars=1
    

    Michael Medin

    • Message #991

      I have done all these mentioned here. When i test with the command by injecting it.. then it works. But in the nagios monitoring shows it as a UNKNOWN: No handler for that command.

      So is there a specific way of giving the output from the script??

      • Message #992

        http://picasaweb.google.com/dinesh707/OtherUploads#5293282328493092418

        These are the sceen shots with my problem.

        thank you

        • Message #993

          Im really really sorry. I have done a mistake and now its working properly.

          Thank you very much.

          • Message #994

            My guess would be that NRPE is not correctly setup on the nagios server...

            A good thing to do is to test check_nrpe from the command line to make sure everything works before trying from nagios...

            MickeM

Subscriptions