Skip to content

Commit 7444957

Browse files
author
github automation
committed
1 parent c660fd2 commit 7444957

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

content/en/docs/snclient/checks/commands/check_files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Naemon Config
6161
| Argument | Description |
6262
| --------- | --------------------------------------------------------------------------------------------------------- |
6363
| file | Alias for path |
64-
| max-depth | Maximum recursion depth. Default: no limit. '0' disables recursion, '1' includes first sub folder level, etc... |
64+
| max-depth | Maximum recursion depth. Default: no limit. '0' and '1' disable recursion and only include files/directories directly under path., '2' starts to include files/folders of subdirectories with given depth. |
6565
| path | Path in which to search for files |
6666
| paths | A comma separated list of paths |
6767
| pattern | Pattern of files to search for |

content/en/docs/snclient/checks/external_commands/_index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ restart_service = NET START "$ARG1$"
110110
111111
If your scripts are located within the `${scripts}` folder, you can specify them using relative paths, as demonstrated in the examples. SNClient will automatically obtain the absolute path for these scripts and use it for execution. Prior to running the scripts, SNClient configures the working directory to be ${shared-dir}.
112112
113+
114+
#### Script Discovery
115+
116+
```
117+
; Load all scripts in a given folder - Load all (${script path}/*) scripts in a given directory and use them as commands.
118+
; Any executable file is considered a script. They do not have end with an script like extension.
119+
; In windows, executable files cannot be discerned. It will add every file under the directory.
120+
; Links are followed, and if they end up under script path, they will be added as a script.
121+
; If path ends with ** its subdirectories will be searched as well.
122+
script path = ${scripts}/autoinclude
123+
```
124+
125+
Scripts can also be automatically discovered and added, without defining them individually. This uses the `script path` setting. There is no way to change the alias, as they will use the scripts name and extension for their alias.
126+
113127
#### Wrapped Scripts
114128
115129
Specify script templates used to define script commands. These templates are expanded by scripts located in the Wrapped Scripts section. Use `%SCRIPT%` to represent the actual script and `%ARGS%` for any provided arguments.

content/en/docs/snclient/install/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ linkTitle: From Source
66

77
## Requirements
88

9-
- golang >= 1.24
9+
- golang
1010
- openssl
1111
- make
1212
- help2man

0 commit comments

Comments
 (0)