Ignore:
Timestamp:
08/16/11 16:54:55 (22 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
438998b
Parents:
b9498ef
Message:

2011-08-16 MickeM

  • Added support for remote WMI checking using target/username/password options like so:

CheckWMI target=192.168.0.123 user=
foobar password=foobar namespace=root
cimv2 MaxCrit=3 MinWarn=1 "Query:load=Select * from win32_Processor"

  • Added support for looking up targets to CheckWMI CheckWMI target=my_test_xp MaxCrit=3 MinWarn=1 "Query:load=Select * from win32_Processor" Where <target> is defined under /settings/targets as well as /settings/targets/my_test_xp

2011-08-15 MickeM

  • Added support for target in default plugin helpers
  • Added remote WMI commands
  • Added target section under /settings/targets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckTaskSched2/CheckTaskSched2.h

    r3bdaf18 rfe75eff  
    2828#include "TaskSched.h" 
    2929 
    30 class CheckTaskSched2 : public nscapi::impl::SimpleCommand, public nscapi::impl::simple_plugin { 
     30class CheckTaskSched2 : public nscapi::impl::simple_command, public nscapi::impl::simple_plugin { 
    3131private: 
    3232  std::wstring syntax; 
     
    5151  bool hasCommandHandler(); 
    5252  bool hasMessageHandler(); 
    53   NSCAPI::nagiosReturn handleCommand(const std::wstring command, std::list<std::wstring> arguments, std::wstring &message, std::wstring &perf); 
     53  NSCAPI::nagiosReturn handleCommand(const std::wstring &target, const std::wstring &command, std::list<std::wstring> &arguments, std::wstring &message, std::wstring &perf); 
    5454  int commandLineExec(const wchar_t* command,const unsigned int argLen,wchar_t** args); 
    5555 
Note: See TracChangeset for help on using the changeset viewer.