Changeset bc97cd8 in nscp for scripts


Ignore:
Timestamp:
09/06/08 20:51:13 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
dc59b0e
Parents:
c0522cd
Message:

2008-09-06 MickeM

  • Improved error reporting in the eventlogchecker
  • *BREAKING CHANGE* filter=new is now the default so unless you use the new filtering you need to specify filter=old instead! I Recommend everyone to stop using the "old" filtering.

2008-09-04 MickeM

  • Fixed issues with new service stuff on NT4 and W2K (should work fine now) + Added some DebugOutput? to service handling features so if you experience tropubel try using sysinternals DebugView? too se logging before the agent startes.
  • Fixed a memory leak in the error formating code

2008-08-24 MickeM

  • Changed NSCA "general problem" error message to be more descriptive.
  • Fixed issue with CheckCPU not returning a valid performance unit (%) see issue #219 for details.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/test.lua

    r367bf20 rbc97cd8  
    1 --require("luacom") 
    2 --require("luacom") 
    3 --require("luacom-lua5-13") 
    4  
    51nscp.print('Loading test script...') 
    6 -- win = loadlib("win32.dll","luaopen_w32") 
    7 -- print(win) -- nil 
    8 require( 'w32' ) 
    9 nscp.print(w32) 
    10 nscp.print(w32.FindWindow) 
    112 
    123nscp.execute('version') 
     
    2213function something (command) 
    2314  nscp.print(command) 
    24   --code, msg, perf = inject('CheckCPU','time=5','MaxCrit=5') 
    25   msg = 'hello' 
    26   perf = 'hello' 
    27   code = 'ok' 
     15  code, msg, perf = nscp.execute('CheckCPU','time=5','MaxCrit=5') 
    2816  print(code .. ': ' .. msg .. ', ' .. perf) 
    2917  collectgarbage () 
Note: See TracChangeset for help on using the changeset viewer.