NSClient++ Help (#1) - 0.4.0 perl scripts : NO HANDLER FOR THAT COMMAND (#1012) - Message List
0.4.0 perl scripts : NO HANDLER FOR THAT COMMAND
Hello ,
i'm looking for help concerning perl scripts
Each time i try to access my script i receive opt/nagios/libexec/check_nrpe -H 1.2.3.4 -p 3180 -n -c HWHP UNKNOWN: No handler for that command.
It seem that i make wrong config file , and i dont understand hos to correct ... I try differents syntax with quote or not ... Nothing better , please can you help ?
[/modules] CheckEventLog = 0 FileLogger.dll = 1 SysTray = 0 CheckDisk = 1 CheckExternalScripts = 1 CheckHelpers = 1 CheckNSCP = 1 CheckSystem = 1 CheckWMI = 1 NRPEServer = 1 NSClientServer = 1 [/settings/NRPE/server] bind to address = command timeout = 60 socket timeout = 30 allow arguments = true allowed hosts = port = 3180 use ssl = false [/settings/NSClient/server] bind to address = socket timeout = 30 allowed hosts = password = public port = 1248 [/settings/external scripts] command timeout = 60 allow arguments = true allow nasty characters = true [Check System] CPUBufferSize = 1h ; A list of wrappped scripts (ie. using the template mechanism) [/settings/external scripts/wrapped scripts] pl = perl\bin\perl ; A list of templates for wrapped scripts [/settings/external scripts/wrappings] [/settings/external scripts/scripts] HWHP = "perl\\bin\\perl scripts\\check_hpasm.pl -H 127.0.0.1" [/settings/NRPE/client/handlers] ; Section for configuring the crash handler. [/settings/crash] ; Section for configuring the log handling. [/settings/log] ; Configure log file properties. [/settings/log/file] ; Section for configuring the shared session. [/settings/shared session] ; Section for system checks and system settings [/settings/check/system/windows] ; Confiure which services has to be in which state [/settings/check/system/windows/service mapping] ; A list of aliases available. An alias is an internal command that has been "wrapped" (to add arguments). Be careful so you don't create loops (ie check_loop=check_a, check_a=check_loop) [/settings/external scripts/alias] ; Command definition for: default [/settings/external scripts/scripts/default] ; A list of avalible remote target systems [/settings/targets]
Enter your message here...
sdouce
06/28/12 11:34:04 (11 months ago)
-
Message #2672
Try running:
nscp test
and then check if there are any erroros. And finally run: HWHP to see what happens...
Michael Medin
mickem07/02/12 11:55:33 (11 months ago)-
Message #2676
: C:\BT-NSCP32\\modules\FileLogger.dll' in module: FileLogger d rvice\NSClient++.cpp:830 addPlugin(C:/BT-NSCP32//modules/NRPEServer.dll as ) d rvice\NSClient++.cpp:830 addPlugin(C:/BT-NSCP32//modules/NSClientServer.dll a s ) d rvice\NSClient++.cpp:807 Loading plugin: CheckDisk d rvice\NSClient++.cpp:807 Loading plugin: Check External Scripts d kExternalScripts.cpp:96 No wrappings found (adding default: vbs, ps1 and bat ) e eckExternalScripts.h:93 Failed to find wrapping for type: d kExternalScripts.cpp:143 Registring command: HWHP[HWHP] = {command: perl\bin\ perl scripts\check_hpasm.pl -H 127.0.0.1, arguments: } d rvice\NSClient++.cpp:807 Loading plugin: Helper function d rvice\NSClient++.cpp:807 Loading plugin: Check NSCP d rvice\NSClient++.cpp:807 Loading plugin: CheckSystem d rvice\NSClient++.cpp:807 Loading plugin: CheckWMIand
d erver\connection.cpp:101 Written data HWHP d rvice\NSClient++.cpp:923 Injecting: hwhp... d rvice\NSClient++.cpp:947 Result hwhp: BAD_CODE: -1 e rvice\NSClient++.cpp:901 No data retutned from command l ce\simple_client.hpp:80 WARNING:
sdouce07/02/12 15:38:30 (11 months ago)
-








