Skip to content

Commit

Permalink
add script vars to server script section
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Jul 12, 2024
1 parent e24a9a8 commit c89ee36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/functions/alerting.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ You have access to any of the [variables](https://docs.tacticalrmm.com/script_va
#### Run script on Agent

- **Script** - Runs the selected script once. It attempts to run it on the agent in question, but if not online TRMM selects a random agent to run on.
- **Script arguments** - Optionally pass in arguments to the failure script.
- **Script environment vars** - Optionally pass in env vars to the failure script.
- **Script arguments** - Optionally pass in arguments to the script.
- **Script environment vars** - Optionally pass in env vars to the script.
- **Action Timeout** - Sets the timeout for the script.

#### Run script on Server
Expand All @@ -76,7 +76,7 @@ You have access to any of the [variables](https://docs.tacticalrmm.com/script_va

This runs the script on your TRMM server. To ensure proper execution, you must specify the interpreter for your script using a shebang line at the top of each script. Also make sure that the specified interpreter is installed on your TRMM server.


Just like with webhooks, you also have access to the same [variables](https://docs.tacticalrmm.com/script_variables/) as well as [custom fields](custom_fields.md) / [global keystore](keystore.md) in the script's arguments or environment variables.

=== ":material-language-python: Python (included with TRMM)"

Expand Down Expand Up @@ -160,8 +160,8 @@ This runs the script on your TRMM server. To ensure proper execution, you must s
```

- **Script** - Runs the selected script once on the TRMM server.
- **Script arguments** - Optionally pass in arguments to the failure script.
- **Script environment vars** - Optionally pass in env vars to the failure script.
- **Script arguments** - Optionally pass in arguments to the script.
- **Script environment vars** - Optionally pass in env vars to the script.
- **Action Timeout** - Sets the timeout for the script.

#### Run actions only on
Expand Down

0 comments on commit c89ee36

Please sign in to comment.