License
MIT License
v0.0.1 · public · Published over 4 years ago
template-toolkit-command is a Sensuctl command plugin using the Sensu Plugin SDK.
This Sensuctl command plugin allows you to test and validate Sensu plugin template strings, to ensure the templating logic works correctly before you use them in other plugins.
The Template Toolkit is a Sensu Handler that ...
Sensuctl command Assets are the best way to make use of this plugin. If you're not using an asset, please consider doing so! You can use the following command to add the asset:
sensuctl command add jspaleta/template-toolkit-command
Requires event json representation stdin to operate correctly.
$ cat event.json | sensuctl command execute jspaleta/template-toolkit-command --template "{{ .Check.Name}}"
2020/09/18 14:41:26 executing command with --template {{ .Check.Name }}
2020/09/18 14:41:26 Template String Output: keepalive
The preferred way of installing and deploying this plugin is to use it as an Asset. If you would
like to compile and install the plugin from source or contribute to it, download the latest version
or create an executable script from this source.
From the local path of the template-toolkit-command repository:
go build
For more information about contributing to this plugin, see Contributing.
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.
×