|Version 8 (modified by mickem, 4 years ago) (diff)|
Configure how the External Scripts module works (not to be confused with the "External Scripts" section below that holds scripts that can be run.
|command_timeout||60||The maximum time in seconds that a command can execute.|
|allow_arguments||0||A Boolean flag to determine if arguments are accepted on the command line.|
|allow_nasty_meta_chars||0||Allow NRPE execution to have “nasty” meta characters that might affect execution of external commands.|
|script_dir||When set all files in this directory will be available as scripts. WARNING|
The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.
Any number (positive integer) representing time in seconds.
- 60 (seconds).
Set timeout to 120 seconds
[External Script] command_timeout=120
A Boolean flag to determine if arguments are accepted on the incoming socket. If arguments are not accepted you can still use external commands that need arguments but you have to define them in the NRPE handlers below. This is similar to the NRPE "dont_blame_nrpe" option.
|0||Disallow arguments for commands|
|1||Allow arguments for commands|
- 0 (false).
[External Script] allow_arguments=1
Allow NRPE execution to have “nasty” meta characters that might affect execution of external commands (things like > “ etc).
- This list contain all possible values
|0||Disallow nasty arguments for commands|
|1||Allow nasty arguments for commands|
- 0 (false)
Allow nasty arguments
[External Script] allow_nasty_meta_chars=1
When set all files in this directory will be available as scripts. This is pretty dangerous but can be a bit useful if you use many scripts and you are sure no one else can add files there.
- Any directory (can be relative to NSClient++)
- Empty (meaning no scripts are added)
All scripts ending with bat in the scripts folder (of NSClient++ installation directory) will be added as scripts.
[External Script] script_dir=.\scripts\*.bat