Exec
Exec Check executes a command or script file on the target host. The type of scripts executed include:
- Bash scripts
 - Powershell scripts
 
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: exec-check
spec:
  interval: 30
  exec:
  - description: "exec dummy check"
    script: |
      echo "hello"
    name: exec-pass-check
    test:
      expr: 'results.Stdout == "hello"'
| Field | Description | Scheme | Required | 
|---|---|---|---|
description | 
Description for the check | string | |
display | 
Template to display server response in text (overrides default bar format for UI) | Template | |
icon | 
Icon for overwriting default icon on the dashboard | string | |
labels | 
Labels for the check | Labels | |
name | 
Name of the check | string | Yes | 
script | 
Script can be a inline script or a path to a script that needs to be executed. On windows executed via powershell and in darwin and linux executed using bash. | string | Yes | 
test | 
Template to test the result | Template | |
transform | 
Template to transform results by excluding or including certain fields in result | Template |