1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
| PS C:\Program Files\NSClient++> dir
Directory: C:\Program Files\NSClient++
Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 3/17/2024 4:53 AM crash-dumps d----- 2/28/2022 6:55 PM modules d----- 2/28/2022 6:55 PM scripts d----- 2/28/2022 6:55 PM security d----- 2/28/2022 6:55 PM web -a---- 12/9/2015 12:17 AM 28672 boost_chrono-vc110-mt-1_58.dll -a---- 12/9/2015 12:17 AM 50688 boost_date_time-vc110-mt-1_58.dll -a---- 12/9/2015 12:17 AM 117760 boost_filesystem-vc110-mt-1_58.dll -a---- 12/9/2015 12:22 AM 439296 boost_program_options-vc110-mt-1_58.dll -a---- 12/9/2015 12:23 AM 256000 boost_python-vc110-mt-1_58.dll -a---- 12/9/2015 12:17 AM 765952 boost_regex-vc110-mt-1_58.dll -a---- 12/9/2015 12:16 AM 19456 boost_system-vc110-mt-1_58.dll -a---- 12/9/2015 12:18 AM 102400 boost_thread-vc110-mt-1_58.dll -a---- 1/14/2020 1:24 PM 51 boot.ini -a---- 1/18/2018 3:51 PM 157453 changelog.txt -a---- 1/28/2018 10:33 PM 1210392 check_nrpe.exe -a---- 12/8/2015 11:16 PM 1655808 libeay32.dll -a---- 11/5/2017 10:04 PM 18351 license.txt -a---- 10/5/2017 7:19 AM 203264 lua.dll -a---- 4/10/2020 6:32 PM 2683 nsclient.ini -a---- 3/17/2024 4:53 AM 42946 nsclient.log -a---- 11/5/2017 9:42 PM 55808 NSCP.Core.dll -a---- 1/28/2018 10:32 PM 4765208 nscp.exe -a---- 11/5/2017 9:42 PM 483328 NSCP.Protobuf.dll -a---- 11/19/2017 4:18 PM 534016 nscp_json_pb.dll -a---- 11/19/2017 3:55 PM 2090496 nscp_lua_pb.dll -a---- 1/23/2018 8:57 PM 507904 nscp_mongoose.dll -a---- 11/19/2017 3:49 PM 2658304 nscp_protobuf.dll -a---- 11/5/2017 10:04 PM 3921 old-settings.map -a---- 1/28/2018 10:21 PM 1973760 plugin_api.dll -a---- 5/23/2015 8:44 AM 3017216 python27.dll -a---- 9/27/2015 3:42 PM 28923515 python27.zip -a---- 1/28/2018 10:34 PM 384536 reporter.exe -a---- 12/8/2015 11:16 PM 348160 ssleay32.dll -a---- 5/23/2015 8:44 AM 689664 unicodedata.pyd -a---- 11/5/2017 9:20 PM 1273856 where_filter.dll -a---- 5/23/2015 8:44 AM 47616 _socket.pyd
PS C:\Program Files\NSClient++> .\nscp.exe Usage: nscp <context> The <context> is the mode of operation ie. a type of command. You can also use aliases here which are shorthands for 'nscp client --module <plugin>' Available context are: client Act as a client. This will run commands inside various installed modules and scripts.
help Display the help screen.
service Install/uninstall/display NSCP service.
settings Change and list settings as well as load and initialize modules.
unit Run unit test scripts.
Available aliases are: check_mk (same as nscp client --module CheckMKClient) Use a check_mk (the protocol) client to request information from other systems via check_mk.
eventlog (same as nscp client --module CheckEventLog) Inject event log message into the eventlog (mainly for testing eventlog filtering and setup)
ext (same as nscp client --module CheckExternalScripts) TODO: describe: ext
ext-scr (same as nscp client --module CheckExternalScripts) TODO: describe: ext-scr
lua (same as nscp client --module LUAScript) Execute lua scripts
mk (same as nscp client --module CheckMKClient) Use a check_mk (the protocol) client to request information from other systems via check_mk.
nrpe (same as nscp client --module NRPEClient) Use a NRPE client to request information from other systems via NRPE similar to standard NRPE check_nrpe comma nd.
nsca (same as nscp client --module NSCAClient) Use a NSCA to submit passive checks to a remote system. Similar to the send_nsca command
nscp (same as nscp client --module NSCPClient) Use a NSCP (the protocol) client to request information from other systems via NSCP.
op5 (same as nscp client --module Op5Client) TODO: describe: op5
Execute python scripts
python (same as nscp client --module PythonScript) Execute python scripts
sys (same as nscp client --module CheckSystem) Various system tools to get information about the system (generally PDH on windows curretly)
syslog (same as nscp client --module SyslogClient) Use SYSLOG (the protocol) to submit messages to a remote system.
test (same as nscp client --module CommandClient) The best way to diagnose and find errors with your configuration and setup.
web (same as nscp client --module WEBServer) TODO: describe: web wmi (same as nscp client --module CheckWMI) Run WMI queries from command line
A short list of all available contexts are: client, help, service, settings, unit, check_mk, eventlog, ext, ext-scr, lua, mk, nrpe, nsca, nscp, op5, py, python, sys, syslog, test, web, wmi PS C:\Program Files\NSClient++> .\nscp.exe help Allowed options:
Common options: --settings arg Override (temporarily) settings subsystem to use --debug Set log level to debug (and show debug information) --log arg The log level to use --define arg Defines to use to override settings. Syntax is PATH:KEY=VALUE
Common options: --help Show the help message for a given command --no-stderr Do not report errors on stderr --version Show version information
Service Options: --install Install service --uninstall Uninstall service --start Start service --stop Stop service --restart Stop than start service --info Show information about service --run Run as a service --name arg Name of service --description arg Description of service
Settings options: --migrate-to arg Migrate (copy) settings from current store to given target store --migrate-from arg Migrate (copy) settings from old given store to current store --generate [=arg(=settings)] Add comments to the current settings store (or a given one). --add-missing Add all default values for all missing keys. --validate Validate the current configuration (or a given configuration). --load-all Load all plugins (currently only used with generate). --path arg Path of key to work with. --key arg Key to work with. --set arg Set a key and path to a given value (use --key and --path). --switch arg Set default context to use (similar to migrate but does NOT copy values) --show Show a value given a key and path. --list List all keys given a path. --add-defaults Same as --add-missing --remove-defaults Remove all keys which have default values (and --use-samples Add sample commands provided by some sections such as targets and real time filters --activate-module arg Add a module (and its configuration options) to the configuration.
Client Options: --load-all Load all plugins. -e [ --exec ] arg Run a command (execute) -b [ --boot ] Boot the client before executing command (similar as running the command from test mode) -q [ --query ] arg Run a query with a given name -s [ --submit ] arg Submit passive check result -M [ --module ] arg Load specific module (in other words do not auto detect module) -a [ --argument ] arg List of arguments (arguments gets -- prefixed automatically (--argument foo=bar is the same as setting "--foo bar") --raw-argument arg List of arguments (does not get -- prefixed)
First argument has to be one of the following: client, help, service, settings, unit, Or on of the following client aliases: check_mk, eventlog, ext, ext-scr, lua, mk, nrpe, nsca, nscp, op5, py, python, sys, syslog, test, web, wmi, PS C:\Program Files\NSClient++> .\nscp.exe --version NSClient++, Version: 0.5.2.35 2018-01-28, Platform: x64 PS C:\Program Files\NSClient++>
|