Ideas (#2) - problem running LUAScripts (#234) - Message List
Hi I am running the NSClientpp (Nagios) 0.3.3.20 2008-07-02 w32. I have some problem running a LUA Test Script which is under "nsclient\scripts\luatesting.lua".
Could someone help me?
here is the scripts
print ('....Loading TESTONS script...') register_command('testons', 'debug')
function debug (command)
print ('Hello world: ' .. command)
end
here is my execution trace.
C:\nsclient>"NSClient++.exe" /test Launching test mode... d \NSClient++.cpp(426) Loading plugin: CheckDisk... d \NSClient++.cpp(426) Loading plugin: Event log Checker.... d \NSClient++.cpp(426) Loading plugin: Check External Scripts... e \CheckExternalScripts.cpp(54) No scripts found in path: c:\my\script\dir*.* d \NSClient++.cpp(426) Loading plugin: Helper function... d \NSClient++.cpp(426) Loading plugin: CheckSystem... d \NSClient++.cpp(426) Loading plugin: CheckTaskSched... d \PDHCollector.cpp(66) Autodetected w2k or later, using w2k PDH counters. d \NSClient++.cpp(426) Loading plugin: File logger... d \PDHCollector.cpp(103) Using index to retrive counternames d \NSClient++.cpp(426) Loading plugin: LUAScript... d \NSClient++.cpp(426) Loading plugin: NRPE client... d \NRPEClient.cpp(49) humm... d \NRPEClient.cpp(51) check_other d \PDHCollector.cpp(123) Found countername: CPU: \Processeur(_total)\% Temps processeur d \NRPEClient.cpp(79) Added NRPE Client: check_other = host: 192.168.0.1, port: 5666, timeout: 10, ssl: 1, buffer_length: 1024 d \PDHCollector.cpp(124) Found countername: UPTIME: \SystÞme?\Temps d'activitÚ sy stÞme d \NSClient++.cpp(426) Loading plugin: NRPE server... d \PDHCollector.cpp(125) Found countername: MCL: \MÚmoire\Limite de mÚmoire d ÚdiÚe? d \PDHCollector.cpp(126) Found countername: MCB: \MÚmoire\Octets dÚdiÚs d \Socket.h(630) Bound to: 0.0.0.0:5666 d \NSClient++.cpp(426) Loading plugin: NSClient server... d \NSClient++.cpp(426) Loading plugin: SystemTray... d \Socket.h(630) Bound to: 0.0.0.0:12489 e \SysTray.cpp(40) SysTray is not installed (or it cannot interact with the desk top) SysTray won't be loaded. Run NSClient++ SysTray install to change this. l \NSClient++.cpp(133) Using settings from: INI-file l \NSClient++.cpp(134) Enter command to inject or exit to terminate... testons foo d \NSClient++.cpp(541) Injecting: testons: foo l \NSClient++.cpp(576) No handler for command: 'testons' No handler for command: testons
-
Message #670
I found the problem. I forgot to add the scripts I wanted to load in the ini file.
I just add this in the ini file.
[LUA Scripts] scripts\luatesting.lua
and my script got loaded. I have some error though but I can figure it out.
regards
franck08/29/08 10:57:40 (5 years ago)








