Scripts

Written By Mikel from Gorelo

Last updated 3 months ago

For anything that can’t be done natively with checks and plugins, scripts are the answer!

Create a script

  1. Navigate to Scripts from the main menu

  2. Click ‘Create a script’ down the bottom-left

  3. Give the script a title

  4. Type or paste your script in the editor field E.g ipconfig

  5. Click ‘Save’ up the top-right

Extra Settings

  • Script type: this will change the script type from default PowerShell to either Command Line or Bash. PowerShell and Command Line is exclusive to Windows and Bash is exclusive to macOS.

  • Timeout: this allows you to set the timeout period of the script in minutes

  • Run as user: this will run the script in the context of the most recently logged on user

  • Variables: this is a list of variable available in Gorelo that you can use. Creating custom assets fields, custom clients fields and custom files will populate this list.

Tip!

  • See GoreloAction for additional functionality via custom fields and alerting

Testing your script

We make it extremely easy to test your script

  1. Open or create a new script

  2. Place your cursor in the ‘Asset’ field at the bottom of the page

  3. Type the hostname of the asset you’d like to test against

  4. Click ‘Run